From dcd25ab75c1288eb7f350efebe36dab160501595 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Thu, 3 Sep 2009 10:42:29 +0200 Subject: add extra indicator config variable for compressed lists file. --- patchtracker/Conf.py | 6 ++++++ reprepro/conf/diffsonly.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3