1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 15:43:39 +02:00
Only a 404 implies a "meta_change" in link_pac and aggregate_pac.
This commit is contained in:
Marcus Huewe
2019-10-09 14:38:50 +02:00

View File

@@ -5146,9 +5146,10 @@ def link_pac(src_project, src_package, dst_project, dst_package, force, rev='',
if root.get('project') != dst_project:
# The source comes from a different project via a project link, we need to create this instance
meta_change = True
except:
except HTTPError as e:
if e.code != 404:
raise
meta_change = True
if meta_change:
if missing_target:
dst_meta = '<package name="%s"><title/><description/></package>' % dst_package
@@ -5240,7 +5241,9 @@ def aggregate_pac(src_project, src_package, dst_project, dst_package, repo_map =
if root.get('project') != dst_project:
# The source comes from a different project via a project link, we need to create this instance
meta_change = True
except:
except HTTPError as e:
if e.code != 404:
raise
meta_change = True
if meta_change: