Remove linkpac code - the api is doing this (for the main package)
This commit is contained in:
parent
fb928e3637
commit
338a0adf14
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user