From 60a6ca575a21704e4eaee4b4e954fe03f4b93ba8 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 6 Mar 2012 19:55:40 +0000 Subject: [PATCH] Ability to run a scan but avoid slow svn repos --- scanner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scanner.py b/scanner.py index 382b1982..bd9d2700 100755 --- a/scanner.py +++ b/scanner.py @@ -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: -- 2.30.2