find-package (FindByName): buildroot topdir goes sbin-ish, for scriptlets

This commit is contained in:
Alexey Tourbin 2008-02-02 01:21:10 +03:00
parent b523e1fd5c
commit cb01bdf610

View File

@ -311,7 +311,7 @@ FindByName()
local dir="${f%/*}"; dir="${dir#${RPM_BUILD_ROOT-}}"
local findpackage_path="$RPM_FINDPACKAGE_USER_PATH"
case "$dir" in
*/sbin)
*/sbin | "" ) # %buildroot dir is used to save scriptlets
findpackage_path="$RPM_FINDPACKAGE_ROOT_PATH" ;;
/etc/*)
dir="${dir#/etc/}"; dir="${dir%%/*}"