From 95b28f987f391a548f2ef9a6bde300291ef1f92a Mon Sep 17 00:00:00 2001 From: Krytarik Raido Date: Wed, 17 Jul 2019 03:27:04 +0200 Subject: Add support for override files. Closes: #780972 --- mini-dinstall | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mini-dinstall') diff --git a/mini-dinstall b/mini-dinstall index a777b27..bae2d15 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -399,6 +399,7 @@ class DistOptionHandler: 'mail_on_success': ['bool', True], 'tweet_on_success': ['bool', False], 'archive_style': ['str', None], + 'override_file': ['str', None], # Release file stuff 'generate_release': ['bool', False], 'release_origin': ['str', user], @@ -1106,10 +1107,12 @@ class ArchiveDirIndexer(threading.Thread): return os.path.join(*[self._name] + list(args)) def _make_indexfile(self, dir, type, name, arch=None): - cmdline = ['apt-ftparchive', type, dir, + cmdline = ['apt-ftparchive', '-o', 'APT::FTPArchive::AlwaysStat=true', '-o', 'APT::FTPArchive::SHA1=false', - '-o', 'APT::FTPArchive::MD5=false'] + '-o', 'APT::FTPArchive::MD5=false', type, dir] + if self._override_file: + cmdline.append(self._override_file) if arch: cmdline.extend(['--arch', arch]) if not nodb_mode: -- cgit v1.2.3