[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.3.4-77-gfff50c3



The following commit has been merged in the master branch:
commit 9951b8160fc1f7469d378638d8b3f91acff89725
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date:   Fri Apr 2 17:54:59 2010 +0100

    Use "==" for numeric comparisons, not "eq"
    
    * t/runtests:
      + [ADB] When checking the number of jobs to run in parallel, use "=="
        for numeric comparison rather than "eq".

diff --git a/debian/changelog b/debian/changelog
index 8d4b6f8..3873a81 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -88,7 +88,12 @@ lintian (2.4.0) UNRELEASED; urgency=low
       file_start()
     + [ADB] Don't refer to .changes files as "packages"
 
-  * {t,testset}/runtests:
+  * t/runtests:
+    + [ADB] Don't flag lintian output lines for .changes tags as invalid
+    + [ADB] When checking the number of jobs to run in parallel, use "=="
+      for numeric comparison rather than "eq".
+
+  * testset/runtests:
     + [ADB] Don't flag lintian output lines for .changes tags as invalid
 
   * unpack/unpack-changes-l1:
diff --git a/t/runtests b/t/runtests
index 8c7e045..fcf03f6 100755
--- a/t/runtests
+++ b/t/runtests
@@ -118,7 +118,7 @@ unless (-d $TESTSET) {
 }
 
 # Getopt::Long assigns 0 as default value if none was specified
-if ($JOBS eq 0 && -r '/proc/cpuinfo') {
+if ($JOBS == 0 && -r '/proc/cpuinfo') {
     open(CPU, '<', '/proc/cpuinfo')
 	or fail("failed to open /proc/cpuinfo: $!");
     while (<CPU>) {
@@ -138,7 +138,7 @@ if ($JOBS eq 0 && -r '/proc/cpuinfo') {
 # No decent number of jobs? set a default
 # Above $JOBS should be set to -1 so that this condition is always met,
 # therefore avoiding duplication.
-if ($JOBS le 0) {
+if ($JOBS <= 0) {
     $JOBS = 2;
 }
 

-- 
Debian package checker


Reply to: