find-package (FindByPath): emit raw dependencies for */bin/* */sbin/* */etc/*

This commit is contained in:
Alexey Tourbin 2008-01-24 03:21:43 +03:00
parent 5179962b46
commit fb695a0022

View File

@ -189,6 +189,14 @@ FindByPath()
esac
unset dir
# APT can handle certain file-level dependencies as is.
case "$rep" in
*/bin/* | */sbin/* | */etc/* )
$Verbose "$f: $rep -> $rep (raw, APT-firendly)"
printf %s\\n "$rep"
return ;;
esac
# Always try package binary index.
local idx_bin="${RPM_PKG_CONTENTS_INDEX_BIN-}" try_idx_bin=1
[ -n "$idx_bin" ] && [ -s "$idx_bin" ] && [ -r "$idx_bin" ] || try_idx_bin=