find-provides: removed optimization for empty lists of files

The same reasons as for find-requires:

1. can be buggy in future;
2. give a chance to the methods to generate some special Provides
This commit is contained in:
Ivan Zakharyaschev 2016-04-07 13:58:27 +03:00
parent 0ebfa8f191
commit d13f11fe4f

View File

@ -62,11 +62,6 @@ while IFS= read -r f; do
printf '%s\n' "$f"
done >"$tmpdir"/files 3>"$RPM_BUILD_ROOT/.files:$RPM_SUBPACKAGE_NAME"
if ! [ -s "$tmpdir"/files ]; then
Info "empty file list, nothing to do"
exit 0
fi
# filter file list through file(1) to append types (dereference symlinks)
if ! file -L -NF$'\t' -f "$tmpdir"/files >"$tmpdir"/files+types; then
sed -n '/\t *ERROR:/p' "$tmpdir"/files+types >&2