<build>
<%(build)s/>
</build>
- <repository name="standard" linkedbuild="all">
+ <repository name="standard" linkedbuild="localdep">
<path repository="standard" project="%(src)s"/>
<arch>i586</arch>
</repository>
sys.exit(-1)
# Pre-release image creation temp project
+ tempbuild = None
if event_fields["project"].find(":prerelease:") > 0:
repos_conf = repomaker.RepoConf(server_conf.repos_conf)
temp_conf_fh, temp_conf_fn = tempfile.mkstemp(text=True)
server_conf.repos_conf = temp_conf_fn
# Disable the project build to save resource
tempbuild=TempBuildService(temp_repo_define_dict['Project'], OBS_API_URL, PATH_OSCRC)
- time.sleep(10)
- assert(tempbuild.is_published())
- tempbuild.disable_build(OBS_USERNAME)
builds_dir = server_conf.builds
if not os.path.exists(builds_dir):
# remove temp repo configuration file
if repo_conf_fn:
os.unlink(repo_conf_fn)
+
+ if tempbuild:
+ tempbuild.disable_build(OBS_USERNAME)
+
+
}
# support of 'Sandbox' repos and images for devel prjs
- if repo['PartOf'] == 'sandbox':
- brepo = self._get_repo(repo['SandboxOf'], target)
+ if repo['PartOf'] == 'review':
+ brepo = self.repos_define.get_repo(repo['SandboxOf'])
baserepo = {'prj': brepo['Project'],
'target': brepo['Target'],
'arch': arch,