Merge pull request #1129 from nilxam/freeze_sle_fix

freeze_command: update product version for openSUSE only
This commit is contained in:
Stephan Kulow 2017-09-04 10:50:32 +02:00 committed by GitHub
commit c261049868

View File

@ -157,12 +157,13 @@ class FreezeCommand(object):
self.update_product_version(prj, 'Test-DVD-' + arch, arch, version) self.update_product_version(prj, 'Test-DVD-' + arch, arch, version)
# now try to freeze sub project - much easier # now try to freeze sub project - much easier
if self.api.item_exists(prj + ':DVD') and self.api.item_exists(prj, "openSUSE-release"): if self.api.item_exists(prj + ':DVD'):
self.prj = prj + ':DVD' self.prj = prj + ':DVD'
self.set_links() self.set_links()
self.freeze_prjlinks() self.freeze_prjlinks()
# Update the version information found in the Test-DVD package, to match openSUSE-release # Update the version information found in the Test-DVD package, to match openSUSE-release
if self.api.item_exists(prj, "openSUSE-release"):
version = self.api.package_version(prj, 'openSUSE-release') version = self.api.package_version(prj, 'openSUSE-release')
for arch in ['x86_64', 'ppc64le']: for arch in ['x86_64', 'ppc64le']:
self.update_product_version(prj + ':DVD', 'Test-DVD-' + arch, arch, version) self.update_product_version(prj + ':DVD', 'Test-DVD-' + arch, arch, version)