Merge pull request #1234 from nilxam/remove_2nd_specfile_ring
accept_command: remove the ring package if it is 2nd specfile is removed
This commit is contained in:
commit
0a45aba664
@ -237,6 +237,11 @@ class AcceptCommand(object):
|
|||||||
else:
|
else:
|
||||||
# If the package was there bug could not be delete, raise the error
|
# If the package was there bug could not be delete, raise the error
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
# Remove package from Rings in case 2nd specfile was removed
|
||||||
|
if self.api.ring_packages.get(spec[:-5]):
|
||||||
|
delete_package(self.api.apiurl, self.api.ring_packages.get(spec[:-5]), spec[:-5], force=True, msg="Cleanup package in Rings")
|
||||||
|
|
||||||
if len(filelist) > 1:
|
if len(filelist) > 1:
|
||||||
# There is more than one .spec file in the package; link package containers as needed
|
# There is more than one .spec file in the package; link package containers as needed
|
||||||
origmeta = self.api.load_file_content(project, pkgname, '_meta')
|
origmeta = self.api.load_file_content(project, pkgname, '_meta')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user