Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions stage_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ function stage_one_package() {
local pkg="$2"

while read -r file; do
# Minimal base images may drop files via dpkg path-exclude rules
# (see /etc/dpkg/dpkg.cfg.d/), but dpkg -L still lists them.
if [[ ! -e "${file}" && ! -L "${file}" ]]; then
DBG "skipping ${file} from pkg ${pkg}: listed by dpkg but not present"
continue
fi
indent stage_file_and_deps "${staging}" "${file}"
done < <( dpkg -L "${pkg}" \
| grep_allow_nomatch -vE '(/\.|/usr/share/(man|doc|.*-completion))' )
Expand Down