Commit 318f2c4d authored by Jason Chu's avatar Jason Chu
Browse files

Make md5sum rule not gak if there are no md5sums

parent 1dace283
......@@ -31,10 +31,11 @@ class package:
if pkginfo.source != None:
if pkginfo.md5sums == None:
ret[0].append('Missing md5sums')
if len(pkginfo.source) > len(pkginfo.md5sums):
ret[0].append('Not enough md5sums: %i needed' % len(pkginfo.source))
elif len(pkginfo.source) < len(pkginfo.md5sums):
ret[0].append('Too Many md5sums: %i needed' % len(pkginfo.source))
else:
if len(pkginfo.source) > len(pkginfo.md5sums):
ret[0].append('Not enough md5sums: %i needed' % len(pkginfo.source))
elif len(pkginfo.source) < len(pkginfo.md5sums):
ret[0].append('Too Many md5sums: %i needed' % len(pkginfo.source))
if pkginfo.md5sums != None:
for sum in pkginfo.md5sums:
if len(sum) != 32:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment