summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-13 14:10:54 +0200
committerErich Eckner <git@eckner.net>2019-09-13 14:10:54 +0200
commit71aef281f16e384b9c8f7998cca37bdb6589341c (patch)
tree6fd730c9c960b74d4262802c52c5d2adc4f40877
parent2d583a8a688db7823cc2d9bb18ed97ea711f2057 (diff)
downloadbuilder-71aef281f16e384b9c8f7998cca37bdb6589341c.tar.xz
bin/return-assignment: fix insertion of link-provides
-rwxr-xr-xbin/return-assignment6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 035dadf..b0fcd0a 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -899,7 +899,11 @@ while read -r package_id package_name; do
t coda
s/\s\S\+$/\t0\0/
:coda
- s/^/'"${package_id}"'\tlink\t/
+ s/^/'"${package_id}"'\t'"$(
+ if [ "${lib}" = 'needs' ]; then
+ printf 'link\\t'
+ fi
+ )"'/
' >> "${tmp_dir}/${lib}"
done
# generate list of make-,check-,rundepends according to .PKGINFO