You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/02/21 18:30:10 UTC

[kibble-scanners] branch master updated: reverse logic, fix a string

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new a16c326  reverse logic, fix a string
a16c326 is described below

commit a16c3266261aa87bab34780ae43385f2226f2304
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Feb 21 19:29:58 2018 +0100

    reverse logic, fix a string
---
 src/plugins/scanners/travis.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/scanners/travis.py b/src/plugins/scanners/travis.py
index 61e7066..d6de24d 100644
--- a/src/plugins/scanners/travis.py
+++ b/src/plugins/scanners/travis.py
@@ -68,8 +68,8 @@ def scanJob(KibbleBit, source, bid, token, TLD):
             print("%s has %u builds done" % (bURL, repojs['@pagination']['count']))
             
             # BREAKER: If we go past count somehow, and travis doesn't say so, bork anyway
-            if repojs['@pagination']['count'] > offset:
-                return
+            if repojs['@pagination']['count'] < offset:
+                return True
             
             offset += 100
             for build in repojs.get('builds', []):
@@ -174,7 +174,7 @@ class travisThread(threading.Thread):
                 return
             self.block.release()
             if not scanJob(self.KibbleBit, self.source, job, self.token, self.tld):
-                self.KibbleBit.pprint("[%s] This borked, trying another one" % job['name'])
+                self.KibbleBit.pprint("[%s] This borked, trying another one" % job)
                 badOnes += 1
                 if badOnes > 100:
                     self.KibbleBit.pprint("Too many errors, bailing!")

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.