Change in osmo-ci[master]: OBS: latest: fix code path to add new package

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Tue Mar 2 08:39:54 UTC 2021


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/23178 )


Change subject: OBS: latest: fix code path to add new package
......................................................................

OBS: latest: fix code path to add new package

Fix osmo_obs_add_rpm_spec() to not assume to be in the $oscdir.
This caused the following error when being called from
osmocom-latest-packages.sh in the code path for adding a new package:
  ls: cannot access 'osmo-gbproxy_*.tar.*': No such file or directory

Related: OS#5051
Change-Id: I467e332b69accfabba53332fdb9cd785991855fc
---
M scripts/common-obs.sh
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/scripts/common-obs.sh b/scripts/common-obs.sh
index b6be98c..38719c8 100644
--- a/scripts/common-obs.sh
+++ b/scripts/common-obs.sh
@@ -139,7 +139,7 @@
 	fi
 
 	# Set source file
-	tarball="$(ls -1 "${name}_"*".tar."*)"
+	tarball="$(cd "$oscdir" && ls -1 "${name}_"*".tar."*)"
 	sed -i "s/^Source:.*/Source:  $tarball/g" "$spec"
 
 	osc add "$spec"

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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I467e332b69accfabba53332fdb9cd785991855fc
Gerrit-Change-Number: 23178
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210302/d63ae21c/attachment.htm>


More information about the gerrit-log mailing list