From 5136df0f393567117b84d4580737e2920cc63f57 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 7 Aug 2011 19:46:41 -0400 Subject: paccache: use pacsort instead of sort -V Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- contrib/paccache.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/paccache.in b/contrib/paccache.in index 909cbbee..b191ed9a 100755 --- a/contrib/paccache.in +++ b/contrib/paccache.in @@ -164,7 +164,7 @@ summarize() { else printf "%s$delim" "$pkg" fi - done < <(printf '%s\n' "$@" | sort -V) + done < <(printf '%s\n' "$@" | pacsort) fi printf -v output 'finished dry run: %d candidates' "$filecount" fi @@ -265,7 +265,7 @@ cd "$cachedir" || 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?(.+([^.])) | sort -V | + <(printf '%s\n' *.pkg.tar?(.+([^.])) | pacsort | pkgfilter "$keep" "$scanarch" \ "${#whitelist[*]}" "${whitelist[@]}" \ "${#blacklist[*]}" "${blacklist[@]}") -- cgit v1.2.3-70-g09d2