osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/42087?usp=email )


Change subject: Osmocom_OBS_sync: fix failing on new scmsync tag
......................................................................

Osmocom_OBS_sync: fix failing on new scmsync tag

The openSUSE OBS instance has added an scmsync tag to their debian 13
meta config:

  <scmsync>https://src.opensuse.org/obs/debian#13</scmsync>

This feature is not supported by the stable OBS version yet (they run
current master), and so the sync fails with:

  project validation error: 6:0: ERROR: Element project has extra content: 
scmsync

Remove the tag to fix this.

Change-Id: Ia2d2ce3a2eeda9a0ed7ce7c7de54293081b44f4e
---
M scripts/obs/sync_obs_projects.py
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/87/42087/1

diff --git a/scripts/obs/sync_obs_projects.py b/scripts/obs/sync_obs_projects.py
index a82a47c..1067a98 100755
--- a/scripts/obs/sync_obs_projects.py
+++ b/scripts/obs/sync_obs_projects.py
@@ -170,6 +170,12 @@
     assert root.get("name") == project
     root.set("name", project_new)

+    # Remove <scmsync> tag: build.opensuse.org runs current master of OBS, the
+    # stable version doesn't have this feature yet and errors with:
+    # "ERROR: Element project has extra content: scmsync"
+    for scmsync in root.findall(".scmsync"):
+        root.remove(scmsync)
+
     for description in root.findall("description"):
         href = f"{lib.args.weburl}/project/show/{project}"
         description.text = (

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/42087?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ia2d2ce3a2eeda9a0ed7ce7c7de54293081b44f4e
Gerrit-Change-Number: 42087
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to