Change in osmo-ci[master]: OBS: latest: run osmo_obs_add_rpm_spec every time

laforge gerrit-no-reply at
Mon Mar 1 12:52:40 UTC 2021

laforge has submitted this change. ( )

Change subject: OBS: latest: run osmo_obs_add_rpm_spec every time

OBS: latest: run osmo_obs_add_rpm_spec every time

Replace the current logic, that would only run osmo_obs_add_rpm_spec
when adding a new package, or when the version of a package has changed,
with running it every time.

Running the command when it is not needed does not hurt, as it does not
take significant time, and osc does not attempt to upload the file when
it did not change.

The advantage is, that we can update/upload the spec file without
tagging a new version, if a bug prevented it from getting uploaded
before (as it just was the case for all Osmocom packages).

Related: OS#5054
Change-Id: Ie067c97b5f54ec5b3309ddbd2bfb7f846cd0ccd3
M scripts/
1 file changed, 3 insertions(+), 2 deletions(-)

  laforge: Looks good to me, approved; Verified
  pespin: Looks good to me, but someone else must approve

diff --git a/scripts/ b/scripts/
index 9bf08eb..fddcf0c 100755
--- a/scripts/
+++ b/scripts/
@@ -96,7 +96,6 @@
     mv "$output/"*.tar* "$TOP/$PROJ/$project/"
     cd "$TOP/$PROJ"
     osc add "$project"
-    osmo_obs_add_rpm_spec "$TOP/$PROJ/$project" "$TOP/$project" "$project" "osmocom-latest"
     cd "$TOP/$PROJ/$project"
@@ -107,9 +106,11 @@
       mv "$output/"*.dsc .
       mv "$output/"*.tar* .
       osc add ./*
-      osmo_obs_add_rpm_spec "$PWD" "$TOP/$project" "$project" "osmocom-latest"
+  osmo_obs_add_rpm_spec "$TOP/$PROJ/$project" "$TOP/$project" "$project" "osmocom-latest"
   cd "$TOP"

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ie067c97b5f54ec5b3309ddbd2bfb7f846cd0ccd3
Gerrit-Change-Number: 23156
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at>
Gerrit-Reviewer: laforge <laforge at>
Gerrit-Reviewer: pespin <pespin at>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list