aboutsummaryrefslogtreecommitdiffstats
path: root/mini-dinstall
diff options
context:
space:
mode:
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: