summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-11-08 13:06:00 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-11-08 13:06:00 (EST)
commit1b7a1b8954846b29e825a26cced6758a8b944683 (patch)
tree224be9842f2cbf90b791e78ffdce5232fb5a9f7b
parent8b6037b653dea0992388d38ecbbcbd4b5c635d5d (diff)
oh-shlibdeps: Don't clobber substvars
-rw-r--r--NEWS3
-rw-r--r--src/oh-shlibdeps.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0ce3ed3..5145c03 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ opkhelper version 3.1.3+dev
Released: ????-??-??
+ * oh-shlibdeps no longer overwrites the contents of existing substvars
+ files.
+
opkhelper version 3.1.3
-----------------------
diff --git a/src/oh-shlibdeps.sh b/src/oh-shlibdeps.sh
index 910b194..92d3c5d 100644
--- a/src/oh-shlibdeps.sh
+++ b/src/oh-shlibdeps.sh
@@ -106,7 +106,7 @@ main()
oh_init
for d in *.data/; do
- exec 3>"${d%.data/}.substvars"
+ exec 3>>"${d%.data/}.substvars"
printf 'Shlib-Depends:' >&3
printf ' %s' $(find_elves "${d}" | sort -u) >&3
printf '\n' >&3