Disallow uploading of new md5 checksummed files

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-07-22 00:54:41 +02:00
parent ae42555729
commit ee14f31cbc
No known key found for this signature in database
GPG key ID: 8657980D9AB51E50

View file

@ -194,6 +194,10 @@ def main():
print 'Missing'
sys.exit(0)
# TODO: At a later date, the default should be moved to True
elif hash_type == "md5" and config['dist-git'].getboolean('nomd5', fallback=False):
send_error('Uploads with md5 are no longer allowed.',
status='406 Not Acceptable')
# check that all directories are in place
makedirs(module_dir, username)