This commit is contained in:
pyllyukko 2026-02-11 18:42:26 -08:00 committed by GitHub
commit 73c9f27922
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -787,8 +787,12 @@
exitcode=1
file=$1
find=""
pattern=""
if [ -n "${DPKGBINARY}" ]; then
find=$(${DPKGBINARY} -S "${file}" 2> /dev/null | ${AWKBINARY} -F: '{print $1}')
elif [ "${OS_NAME}" = "Slackware Linux" -a -d "${ROOTDIR}/var/lib/pkgtools/packages" ]; then
pattern="${file//./\\.}"
find=$(${GREPBINARY} -l "^${pattern#/}\(\.new\)\?$" ${ROOTDIR}/var/lib/pkgtools/packages/* | ${SEDBINARY} 's/^.\+\///')
elif [ -n "${RPMBINARY}" ]; then
find=$(${RPMBINARY} -qf "${file}" 2> /dev/null | ${AWKBINARY} -F- '{print $1}')
fi