From e49c0d6287be2868aa44251e682d38e6036b53e0 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sun, 6 Jul 2008 14:43:29 +0200 Subject: add automatic archive updating support --- gen-patch-info.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3