diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-01-14 15:33:40 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-01-15 16:51:13 +0100 |
commit | d0ab94579bf16d69727bf2539cac691eafb2e388 (patch) | |
tree | f75adab04ac21cdbfecb62a8c2f4c4efb9b655e7 /scripts/osmocom-nightly-packages.sh | |
parent | b7f05a92e57650369b975d47b639989a6143454e (diff) |
OBS: add_depend_deb: no self-dependencies
Check if we are trying to make a package depend on itself, and skip in
that case. This happens for the osmocom-nightly etc. metapackages, as
they go through the same code path as regular packages. While at it, use
proper variable names in the function.
Add the new variable as second argument and not as third, because a
fourth argument will be added with the dependency version, and because
this order will be consistent with osmo_obs_add_rpm_spec() when it gets
extended in a future commit.
Fix the following warning:
W: osmocom-nightly source: package-depends-on-itself osmocom-nightly depends
Related: OS#4733
Change-Id: I439079c00259d73a18cb8617a3e76d05df5a7a35
Diffstat (limited to 'scripts/osmocom-nightly-packages.sh')
-rwxr-xr-x | scripts/osmocom-nightly-packages.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh index 4234021..3f95d17 100755 --- a/scripts/osmocom-nightly-packages.sh +++ b/scripts/osmocom-nightly-packages.sh @@ -129,7 +129,7 @@ build() { if [ "$changelog" = "commit" ] ; then VER=$(get_commit_version) - osmo_obs_add_depend_deb "./debian/control" "osmocom-$FEED" + osmo_obs_add_depend_deb "./debian/control" "$name" "osmocom-$FEED" dch -b -v "$VER" -m "Snapshot build" git commit -m "$VER snapshot" debian/ fi |