osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/28637 ) Change subject: scripts: osmo_obs_add_rpm_spec: fix tar pattern ...................................................................... scripts: osmo_obs_add_rpm_spec: fix tar pattern Fix the pattern that gets the source tarball with ls in order to update the "Source:" line in the spec file. The previous assumption was that it would always match: ls -1 "${name}_"*".tar."* But this isn't the case anymore since a spec file was added to libosmo-dsp where the package name ($name) is libosmo-dsp, but the tarball doesn't have the minus character: libosmodsp_0.4.0.1.d7d9.202207150002.tar.xz Therefore just change the pattern to: ls -1 *_*.tar.* We can do this because there is always only one tarball in the directory and we wouldn't use ".tar." in a package name. Fixes: OS#5619 Change-Id: Ic704f480102ab6f90f3936a3be30e3020402e750 --- M scripts/common-obs.sh 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/37/28637/1 diff --git a/scripts/common-obs.sh b/scripts/common-obs.sh index 4de2c55..6f96e95 100644 --- a/scripts/common-obs.sh +++ b/scripts/common-obs.sh @@ -162,7 +162,7 @@ fi # Set source file - tarball="$(cd "$oscdir" && ls -1 "${name}_"*".tar."*)" + tarball="$(cd "$oscdir" && ls -1 *_*.tar.*)" sed -i "s/^Source:.*/Source: $tarball/g" "$spec" osc add "$spec" -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/28637 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ic704f480102ab6f90f3936a3be30e3020402e750 Gerrit-Change-Number: 28637 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-MessageType: newchange