Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added support for Slackware into FileInstalledByPackage function
  • Loading branch information
pyllyukko committed Jan 13, 2026
commit a2b3c48bfc957c4f10365bc8c0ca81ae309df0ed
4 changes: 4 additions & 0 deletions include/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down