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.
fatal 1 "Unable to chdir to directory \"$dir\" in find_rpm()"
local file
fatal 1 "Unable to chdir to directory \"$dir\" in find_rpm()"
local file
+ for file in $(ls *.rpm); do
if [ ! -f "$file" ]; then
continue
fi
if [ ! -f "$file" ]; then
continue
fi