Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pacman
Namcap
Commits
318f2c4d
Commit
318f2c4d
authored
Jul 22, 2007
by
Jason Chu
Browse files
Make md5sum rule not gak if there are no md5sums
parent
1dace283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Namcap/md5sums.py
View file @
318f2c4d
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment