Remove linkpac code - the api is doing this (for the main package)

This commit is contained in:
Stephan Kulow 2019-11-26 15:57:39 +01:00
parent fb928e3637
commit 338a0adf14

View File

@ -1004,25 +1004,6 @@ class StagingAPI(object):
src_pkg = act.src_package
tar_pkg = act.tgt_package
# https://github.com/openSUSE/open-build-service/issues/7343
if False:
# expand the revision to a md5
url = self.makeurl(['source', src_prj, src_pkg],
{'rev': src_rev, 'expand': 1})
f = http_GET(url)
root = ET.parse(f).getroot()
src_rev = root.attrib['srcmd5']
src_vrev = root.attrib.get('vrev')
# link stuff - not using linkpac because linkpac copies meta
# from source
root = ET.Element('link', package=src_pkg, project=src_prj,
rev=src_rev)
if src_vrev:
root.attrib['vrev'] = src_vrev
url = self.makeurl(['source', project, tar_pkg, '_link'])
http_PUT(url, data=ET.tostring(root))
# If adi project, check for baselibs.conf in all specs to catch both
# dynamically generated and static baselibs.conf.
if self.is_adi_project(project):