chiark / gitweb /
Ability to run a scan but avoid slow svn repos
authorCiaran Gultnieks <ciaran@ciarang.com>
Tue, 6 Mar 2012 19:55:40 +0000 (19:55 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Tue, 6 Mar 2012 19:55:40 +0000 (19:55 +0000)
scanner.py

index 382b19827e1ec199ed05e621c2697954b77b5324..bd9d27009286ff4701a3cdc10ce1f3fd479f8d20 100755 (executable)
@@ -43,6 +43,8 @@ def main():
                       help="Spew out even more information than normal")
     parser.add_option("-p", "--package", default=None,
                       help="Scan only the specified package")
+    parser.add_option("--nosvn", action="store_true", default=False,
+                      help="Skip svn repositories - for test purposes, because they are too slow.")
     (options, args) = parser.parse_args()
 
     # Get all apps...
@@ -65,6 +67,8 @@ def main():
         elif not app['builds']:
             print "Skipping %s: no builds specified" % app['id']
             skip = True
+        elif options.nosvn and app['Repo Type'] == 'svn':
+            skip = True
 
         if not skip: