diff options
author | Sean Finney <seanius@debian.org> | 2009-09-03 10:42:29 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2009-09-03 10:42:29 +0200 |
commit | dcd25ab75c1288eb7f350efebe36dab160501595 (patch) | |
tree | a02caec74c3c27d7784d64ca0a7c25f844778208 | |
parent | 422cbf95d4340fa7d007de7e47a51288c88b7ddd (diff) | |
download | patch-tracker-dcd25ab75c1288eb7f350efebe36dab160501595.tar.gz |
add extra indicator config variable for compressed lists file.
-rwxr-xr-x | patchtracker/Conf.py | 6 | ||||
-rwxr-xr-x | reprepro/conf/diffsonly.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/patchtracker/Conf.py b/patchtracker/Conf.py index 448f595..4fbc7c1 100755 --- a/patchtracker/Conf.py +++ b/patchtracker/Conf.py @@ -34,6 +34,12 @@ cachedir = "cache" cachecompress = False """ Should compression of cache data be enabled? """ +archive_lists_compressed = False +""" Are the archive lists in the local partial mirror compressed? Different + versions of reprepro seem to behave differently here so this is an + indication flag for the scripts that interact with it. +""" + try: from localconfig import * except ImportError: diff --git a/reprepro/conf/diffsonly.py b/reprepro/conf/diffsonly.py index 286d367..e37b911 100755 --- a/reprepro/conf/diffsonly.py +++ b/reprepro/conf/diffsonly.py @@ -17,7 +17,7 @@ if __name__ == '__main__': inf = sys.argv[1] fh = None slist = [] - if fnmatch(inf, "*.gz"): + if fnmatch(inf, "*.gz") or Conf.archive_lists_compressed: fh = GzipFile(inf) else: fh = file(inf) |