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

laforge gerrit-no-reply at lists.osmocom.org
Tue Mar 2 12:23:01 UTC 2021


laforge has submitted this change. ( 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(-)

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



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: 3
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210302/0eb84702/attachment.htm>


More information about the gerrit-log mailing list