Let rpmbuild continue when no shared source trees exist

This commit is contained in:
Chuck Ebbert 2010-08-01 18:27:59 -04:00
parent 78cf92dcac
commit cec1fd6cfe
1 changed files with 1 additions and 1 deletions

View File

@ -1070,7 +1070,7 @@ 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 -v kernel-%{kversion}%{?dist}) ||:
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then