From: brian Date: Thu, 16 Jul 2009 19:37:22 +0000 (+0000) Subject: b=20058 X-Git-Tag: v1_9_220~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=20033943761b70443be1b66261dd44d279acbcec;p=fs%2Flustre-release.git b=20058 i=yangsheng i=wangyb Only consider RPMs when trying to find an RPM. Some distros ~cough~SLES~cough~ seem to populate the RPMS subdir with non-RPM files. --- diff --git a/build/lbuild b/build/lbuild index 3ac3c33..407d17f 100755 --- a/build/lbuild +++ b/build/lbuild @@ -1080,7 +1080,7 @@ find_rpm() { fatal 1 "Unable to chdir to directory \"$dir\" in find_rpm()" local file - for file in $(ls); do + for file in $(ls *.rpm); do if [ ! -f "$file" ]; then continue fi