Whamcloud - gitweb
b=20058
authorbrian <brian>
Thu, 16 Jul 2009 19:37:22 +0000 (19:37 +0000)
committerbrian <brian>
Thu, 16 Jul 2009 19:37:22 +0000 (19:37 +0000)
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.

build/lbuild

index 3ac3c33..407d17f 100755 (executable)
@@ -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