Skip to content

Commit 8174e5a

Browse files
authored
Merge pull request #95 from infosiftr/dpkg-query-search
Fix `dpkg-query --search` to be more specific
2 parents 5699d90 + 8508f4b commit 8174e5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

1/debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ RUN set -eux; \
115115
apt-mark auto '.*' > /dev/null; \
116116
apt-mark manual $savedAptMark > /dev/null; \
117117
find /usr/local -type f -executable -exec ldd '{}' ';' \
118-
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
118+
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
119119
| sort -u \
120120
| xargs -r dpkg-query --search \
121121
| cut -d: -f1 \

0 commit comments

Comments
 (0)