Skip to content

Handle rpm on Debian-based distributions #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2018
Merged
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
8 changes: 6 additions & 2 deletions packaging/packager
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ function package_libc_via_pacman {

function package_libc_via_dpkg() {
if type dpkg-query > /dev/null 2>&1; then
dpkg-query --listfiles libc6 | sed -E '/\.so$|\.so\.[0-9]+$/!d'
if [ $(dpkg-query --listfiles libc6 | wc -l) -gt 0 ]; then
dpkg-query --listfiles libc6 | sed -E '/\.so$|\.so\.[0-9]+$/!d'
fi
fi
}

function package_libc_via_rpm() {
if type rpm > /dev/null 2>&1; then
rpm --query --list glibc | sed -E '/\.so$|\.so\.[0-9]+$/!d'
if [ $(rpm --query --list --quiet glibc | wc -l) -gt 0 ]; then
rpm --query --list glibc | sed -E '/\.so$|\.so\.[0-9]+$/!d'
fi
fi
}

Expand Down