mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-24 07:22:54 +00:00
Disallow uploading of new md5 checksummed files
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
ae42555729
commit
ee14f31cbc
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,10 @@ def main():
|
||||||
print 'Missing'
|
print 'Missing'
|
||||||
|
|
||||||
sys.exit(0)
|
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
|
# check that all directories are in place
|
||||||
makedirs(module_dir, username)
|
makedirs(module_dir, username)
|
||||||
|
|
Loading…
Add table
Reference in a new issue