Skip to content

Commit b3cc261

Browse files
nlewyckybmoffatt
andauthored
packager: fetch glibc corresponding to the host architecture on debian multiarch (#126)
Co-authored-by: Bryan Moffatt <[email protected]>
1 parent 4aa6639 commit b3cc261

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packaging/packager

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ function package_libc_pacman() {
7878

7979
function package_libc_dpkg() {
8080
if type dpkg-query > /dev/null 2>&1; then
81-
if [[ $(dpkg-query --listfiles libc6 | wc -l) -gt 0 ]]; then
82-
dpkg-query --listfiles libc6 | pluck_so_files
81+
architecture=$(dpkg --print-architecture)
82+
if [[ $(dpkg-query --listfiles libc6:$architecture | wc -l) -gt 0 ]]; then
83+
dpkg-query --listfiles libc6:$architecture | pluck_so_files
8384
fi
8485
fi
8586
}

0 commit comments

Comments
 (0)