diff options
-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) |