diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-03-02 09:28:24 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-03-02 09:40:38 +0100 |
commit | 0bf6b17bce3df095f3da10ce4264e16a39fdc788 (patch) | |
tree | 41a45bc09b5f65833484a3bb51519097516aab02 /scripts | |
parent | 1cc397205d28294f8132f46c02568677d70e2223 (diff) |
OBS: latest: fix code path to add new packageosmith/obs-latest-fix
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
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/common-obs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ osmo_obs_add_rpm_spec() { 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" |