[pacman-dev] [PATCH 2/2] paccache: pass the --file option to pacsort
Dave Reisner
dreisner at archlinux.org
Sat Jan 19 11:06:46 EST 2013
Resolves FS#33455.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
contrib/paccache.sh.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in
index e813655..29e2603 100644
--- a/contrib/paccache.sh.in
+++ b/contrib/paccache.sh.in
@@ -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[@]}")
--
1.8.1.1
More information about the pacman-dev
mailing list