find-package (FindByPath): consider (not-so-) broken symbolic links inside RPM_BUILD_ROOT

This commit is contained in:
Alexey Tourbin 2007-09-19 14:14:59 +04:00
parent d74f8d9a69
commit 8dd5a961e8

View File

@ -70,7 +70,7 @@ FindByPath()
fi
# Does it belong to buildroot?
if [ -n "${RPM_BUILD_ROOT-}" ] && [ -e "$RPM_BUILD_ROOT$rep" ]; then
if [ -n "${RPM_BUILD_ROOT-}" ] && [ -e "$RPM_BUILD_ROOT$rep" -o -L "$RPM_BUILD_ROOT$rep" ]; then
$Verbose "$f: $rep -> \$RPM_BUILD_ROOT$rep (skip)"
return
fi