skippkg-finder.py: Handle empty configuration values properly
Splitting an empty string with ' ' results in list(""), which the code does not handle properly. Instead use just split() which returns an empty list() insted.
This commit is contained in:
parent
d798b5193f
commit
df4782da0b
@ -38,14 +38,14 @@ class SkippkgFinder(object):
|
|||||||
# binary rpms of packages from `skippkg-finder-skiplist-ignores`
|
# binary rpms of packages from `skippkg-finder-skiplist-ignores`
|
||||||
# be found in the `package_binaries` thus format must to be like
|
# be found in the `package_binaries` thus format must to be like
|
||||||
# SUSE:SLE-15:Update_libcdio.12032, PROJECT-NAME_PACKAGE-NAME
|
# SUSE:SLE-15:Update_libcdio.12032, PROJECT-NAME_PACKAGE-NAME
|
||||||
self.skiplist_ignored = set(config.get('skippkg-finder-skiplist-ignores', '').split(' '))
|
self.skiplist_ignored = set(config.get('skippkg-finder-skiplist-ignores', '').split())
|
||||||
|
|
||||||
# supplement RPMs for skipping from the ftp-tree
|
# supplement RPMs for skipping from the ftp-tree
|
||||||
self.skiplist_supplement_regex = set(config.get('skippkg-finder-skiplist-supplement-regex', '').split(' '))
|
self.skiplist_supplement_regex = set(config.get('skippkg-finder-skiplist-supplement-regex', '').split())
|
||||||
# drops off RPM from a list of the supplement RPMs due to regex
|
# drops off RPM from a list of the supplement RPMs due to regex
|
||||||
self.skiplist_supplement_ignores = set(config.get('skippkg-finder-skiplist-supplement-ignores', '').split(' '))
|
self.skiplist_supplement_ignores = set(config.get('skippkg-finder-skiplist-supplement-ignores', '').split())
|
||||||
# conditional support scenario
|
# conditional support scenario
|
||||||
self.skiplist_conditionals = set(config.get('skippkg-finder-conditional-scenarios', '').split(' '))
|
self.skiplist_conditionals = set(config.get('skippkg-finder-conditional-scenarios', '').split())
|
||||||
|
|
||||||
def is_sle_specific(self, package):
|
def is_sle_specific(self, package):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user