Skip to content

Commit

Permalink
Fix dpkg-query --search to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Apr 5, 2024
1 parent 082047a commit b1cb5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ RUN set -eux; \
apt-mark auto '.*' > /dev/null; \
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
find /usr/local -type f -executable -exec ldd '{}' ';' \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| cut -d: -f1 \
Expand Down

0 comments on commit b1cb5de

Please sign in to comment.