Make search for shared source trees work better.

This commit is contained in:
Chuck Ebbert 2010-08-01 21:56:56 -04:00
parent 8e2ce3ce88
commit e573f4aa51
1 changed files with 2 additions and 1 deletions

View File

@ -1070,7 +1070,8 @@ ApplyOptionalPatch()
# Build a list of the other top-level kernel tree directories.
# This will be used to hardlink identical vanilla subdirs.
sharedirs=$(find $(pwd) -maxdepth 1 -type d -name kernel-2.6.\* | grep -v kernel-%{kversion}%{?dist}) ||:
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-2.6.*' \
| grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then