aboutsummaryrefslogtreecommitdiffstats
path: root/mini-dinstall
diff options
context:
space:
mode:
authorLibravatarKrytarik Raido <krytarik@tuxgarage.com>2019-07-17 03:27:04 +0200
committerLibravatarKrytarik Raido <krytarik@tuxgarage.com>2019-07-17 03:27:04 +0200
commit95b28f987f391a548f2ef9a6bde300291ef1f92a (patch)
treef76119371cc7be17cb54bfa88ada6dcd94246b10 /mini-dinstall
parent182615555cd57567c53919b31d41aec8aee4e1fd (diff)
Add support for override files.
Closes: #780972
Diffstat (limited to 'mini-dinstall')
-rwxr-xr-xmini-dinstall7
1 files changed, 5 insertions, 2 deletions
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: