From c91baf762290503ef2ad5551e55892c50acb407c Mon Sep 17 00:00:00 2001 From: Alberto Planas Date: Fri, 28 Aug 2015 14:49:47 +0200 Subject: [PATCH] Restore the build status in the freeze command. --- osclib/freeze_command.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osclib/freeze_command.py b/osclib/freeze_command.py index f91ec5de..4fa6383d 100644 --- a/osclib/freeze_command.py +++ b/osclib/freeze_command.py @@ -122,6 +122,8 @@ class FreezeCommand(object): self.freeze_prjlinks() + build_status = self.api.get_flag_in_prj(prj, flag='build') + # If there is not a bootstrap repository, there is not # anything more to do. if not self.is_bootstrap(): @@ -149,6 +151,9 @@ class FreezeCommand(object): for arch in ['x86_64', 'ppc64le']: self.update_product_version(prj + ':DVD', 'Test-DVD-' + arch, arch, version) + # Set the original build status for the project + self.api.build_switch_prj(prj, build_status) + def update_product_version(self, project, product, arch, version): if not self.api.item_exists(project, product): return None