aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-01 12:04:36 +0100
committerlaforge <laforge@osmocom.org>2021-03-01 12:52:40 +0000
commitbb880678c1cd120b5a208062f47e5c76b899ebe0 (patch)
tree7357e80c71b46d5db33a4cce5d451e6dbd3297a1
parent08a554c7d10ee2adec134adb172c2422ff46c6da (diff)
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
-rwxr-xr-xscripts/osmocom-latest-packages.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index 9bf08eb..fddcf0c 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -96,7 +96,6 @@ build() {
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"
else
cd "$TOP/$PROJ/$project"
@@ -107,9 +106,11 @@ build() {
mv "$output/"*.dsc .
mv "$output/"*.tar* .
osc add ./*
- osmo_obs_add_rpm_spec "$PWD" "$TOP/$project" "$project" "osmocom-latest"
fi
fi
+
+ osmo_obs_add_rpm_spec "$TOP/$PROJ/$project" "$TOP/$project" "$project" "osmocom-latest"
+
cd "$TOP"
}