diff options
author | Unit 193 <unit193@ubuntu.com> | 2016-04-15 00:03:56 -0400 |
---|---|---|
committer | Unit 193 <unit193@ubuntu.com> | 2016-04-15 00:03:56 -0400 |
commit | c3615cbdcbf62ec275b047c6739c55a8a424c60b (patch) | |
tree | b1b3a33ab4118ca1741b264a113ddbf8ab6374c1 | |
parent | a208f0d0f93622435b1c4ad35d6646fde182d973 (diff) | |
download | mini-dinstall-c3615cbdcbf62ec275b047c6739c55a8a424c60b.tar.bz2 mini-dinstall-c3615cbdcbf62ec275b047c6739c55a8a424c60b.tar.xz mini-dinstall-c3615cbdcbf62ec275b047c6739c55a8a424c60b.tar.zst |
Only use sha256 hashes, dropping sha1 and md5.
-rwxr-xr-x | mini-dinstall | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mini-dinstall b/mini-dinstall index 6523d46..9827c8c 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -1125,7 +1125,9 @@ class ArchiveDirIndexer(threading.Thread): def _make_indexfile(self, dir, type, name, arch=None): cmdline = ['apt-ftparchive', type, dir, - '-o', 'APT::FTPArchive::AlwaysStat=true'] + '-o', 'APT::FTPArchive::AlwaysStat=true', + '-o', 'APT::FTPArchive::SHA1=false', + '-o', 'APT::FTPArchive::MD5=false'] if arch: cmdline += ['--arch', arch] if not nodb_mode: @@ -1423,7 +1425,7 @@ class SimpleSubdirArchiveDirIndexer(ArchiveDirIndexer): f.write('Architectures: ' + arch + '\n') if self._release_description: f.write('Description: ' + self._release_description + '\n') - for hash in [ 'md5', 'sha1', 'sha256' ]: + for hash in [ 'sha256' ]: self._do_hash(hash, indexfiles, f) f.close() if self._sign_releasefile(os.path.basename(tmpname), self._abspath(arch)): @@ -1524,7 +1526,7 @@ class FlatArchiveDirIndexer(ArchiveDirIndexer): f.write('Architectures: ' + string.join(self._arches, ' ') + '\n') if self._release_description: f.write('Description: ' + self._release_description + '\n') - for hash in [ 'md5', 'sha1', 'sha256' ]: + for hash in [ 'sha256' ]: self._do_hash(hash, indexfiles, f) f.close() if self._sign_releasefile(tmpname, self._abspath()): |