diff options
author | Sean Finney <seanius@debian.org> | 2008-07-06 14:43:29 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-07-06 14:43:29 +0200 |
commit | e49c0d6287be2868aa44251e682d38e6036b53e0 (patch) | |
tree | a2853752b5d829ea2e413457bf7e87f6d37054c1 | |
parent | 37daa692e66cb9d222967ccfe73ae64eafcf2f7f (diff) | |
download | patch-tracker-e49c0d6287be2868aa44251e682d38e6036b53e0.tar.gz |
add automatic archive updating support
-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: |