paccache: pass the --file option to pacsort

Resolves FS#33455.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2013-01-19 11:06:46 -05:00 committed by Allan McRae
parent a64a713fc2
commit 250aaefb27
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ summarize() {
else
printf "%s$delim" "$pkg"
fi
done < <(printf '%s\n' "$@" | pacsort)
done < <(printf '%s\n' "$@" | pacsort --files)
fi
printf -v output 'finished dry run: %d candidates' "$filecount"
fi
@ -283,7 +283,7 @@ cd "$cachedir" >/dev/null || die "failed to chdir to \`%s'" "$cachedir"
# note that these results are returned in an arbitrary order from awk, but
# they'll be resorted (in summarize) iff we have a verbosity level set.
IFS=$'\n' read -r -d '' -a candidates < \
<(printf '%s\n' *.pkg.tar?(.+([^.])) | pacsort |
<(printf '%s\n' *.pkg.tar?(.+([^.])) | pacsort --files |
pkgfilter "$keep" "$scanarch" \
"${#whitelist[*]}" "${whitelist[@]}" \
"${#blacklist[*]}" "${blacklist[@]}")