Improve _multibuild on accept
This commit is contained in:
parent
8b0a0324b4
commit
0eb12a53c4
@ -153,10 +153,14 @@ class AcceptCommand(object):
|
||||
def fix_linking_packages(self, package, dry=False):
|
||||
project = self.api.project
|
||||
file_list = self.api.get_filelist_for_package(package, project)
|
||||
# ignore
|
||||
if '_multibuild' in file_list or '_link' in file_list:
|
||||
# ignore linked packages
|
||||
if '_link' in file_list:
|
||||
return
|
||||
needed_links = set()
|
||||
# if there's a multibuild we assume all flavors are built
|
||||
# using multibuild. So any potential previous links have to
|
||||
# be removed ie set of needed_links left empty.
|
||||
if '_multibuild' not in file_list:
|
||||
for file in file_list:
|
||||
if file.endswith('.spec') and file != f'{package}.spec':
|
||||
needed_links.add(file[:-5])
|
||||
|
Loading…
x
Reference in New Issue
Block a user