Skip to content

Commit 46c2e72

Browse files
authored
Merge pull request #319 from infosiftr/dpkg-query-search
Fix `dpkg-query --search` to be more specific
2 parents 51b7921 + 2ab2ec3 commit 46c2e72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

5.0/bookworm/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.

5.1/bookworm/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-debian.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ RUN set -eux; \
132132
apt-mark auto '.*' > /dev/null; \
133133
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
134134
find /usr/local -type f -executable -exec ldd '{}' ';' \
135-
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
135+
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
136136
| sort -u \
137137
| xargs -r dpkg-query --search \
138138
| cut -d: -f1 \

0 commit comments

Comments
 (0)