Learn more about these different git repos.
Other Git URLs
8aa1013
9df2d27
b9d0a95
@@ -1052,9 +1052,8 @@
def is_debuginfo(name):
"""Determines if an rpm is a debuginfo rpm, based on name"""
- if name.endswith('-debuginfo') or name.find('-debuginfo-') != -1:
- return True
- return False
+ return (name.endswith('-debuginfo') or name.endswith('-debugsource') or
+ '-debuginfo-' in name)
def canonArch(arch):
"""Given an arch, return the "canonical" arch"""
I suppose this is enough.
:thumbsup:
I would even remove that 'if' and just use 'return name.endswith...'
@tkopecek alright. fixed.
1 new commit added
Syntax error in current version. Please check make test next time.
make test
Also, would prefer to avoid backslash continuations unless it is the least worst option, as pep8 recommends. E.g.
return (name.endswith('-debuginfo') or name.endswith('-debugsource') or '-debuginfo-' in name)
3 new commits added
Commit 658953a fixes this pull-request
Pull-Request has been merged by mikem@redhat.com
I suppose this is enough.