Disable publishing for the product_repo in the test_project directly

- This should fix https://github.com/openSUSE/openSUSE-release-tools/pull/1751#issuecomment-440578557
This commit is contained in:
Fabian Vogt 2018-11-21 09:47:37 +01:00
parent 1f0e92c643
commit d9225758ce

View File

@ -533,7 +533,8 @@ class ToTestBase(object):
release = 'Snapshot%s' % snapshot if snapshot else None
logger.info('Updating snapshot %s' % snapshot)
if not (self.dryrun or self.norelease):
self.api.switch_flag_in_prj(self.test_project, flag='publish', state='disable')
self.api.switch_flag_in_prj(self.test_project, flag='publish', state='disable',
repository=self.product_repo)
self._release(set_release=release)