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.
In some cases we would not like to add package to ftp-tree on an
specific arch, this can be done by multiple 'group' to be defined in
NON_FTP_PACKAGES.group, however NON_FTP_PACKAGES.group is auto-generated
by skippkg-finder according the buildresults and the project attributes,
this commit will add conditionals support to skippkg-finder, in other
words, to be able to define arch dependent package in
NON_FTP_PACKAGES.group via the project attribute.
To enable it, 'use group' is also needed to be existsed in the product
file, the available condition/platform can be found in meta pacakge.
Since update project has different set up than GA project, it
should check content from update project prior to GA when run this
script for Leap Respin.
In case regex list has not been defined any value, the first element
will be space only, this causes unconditional matched any binary name.
Exit the for loop if the first element is space only.
For the purpose of adding some package(RPM) to the skiplist, there are
two option has introduced, skiplist_supplement_regex for adding package
if it has matched with the regex, skiplist_supplement_ignores in order
to free package from the regex rule.
Leap 15 Respin project doesn't have inherited packagelist,
skippkg-finder should have to check origin project but upload the result
to the working target project.
Example:
Checking openSUSE:Leap:15.3, upload data to
openSUSE:Leap:15.3:Update:Respin
The extra packages are packages should be skipped in ftp-tree but we
won't for some reasons, packagelist is not fixed depend on package
status in SLE side, move the list to OSRT attribute avoiding modify this
list so often.