Merge pull request #16 from puiterwijk/no-md5

Disallow uploading of new md5 checksummed files
This commit is contained in:
Michal Novotný 2017-07-24 03:20:43 -04:00 committed by GitHub
commit 30cb11bd0b

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)