diff options
-rwxr-xr-x | gen-patch-info.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gen-patch-info.py b/gen-patch-info.py index 0d579af..537e0a8 100755 --- a/gen-patch-info.py +++ b/gen-patch-info.py @@ -12,14 +12,21 @@ from patchtracker.DB import PatchTrackerDB if __name__ == '__main__': db = PatchTrackerDB() os.system("cheetah compile templates/skeleton") - opts,args = getopt.getopt(sys.argv[1:], "s:p:") + opts,args = getopt.getopt(sys.argv[1:], "as:p:") suites = None packages = None + update_archive = False for o,v in opts: if o == "-s": suites = v.split(',') elif o == "-p": packages = v.split(',') + elif o == "-a": + update_archive = True + + if update_archive: + os.system("reprepro -b %s --confdir reprepro/conf update"% + (Conf.archive_root,)) a = Archive(Conf.archive_root, suitefilter=suites, pkgfilter=packages) try: |