diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-07 19:46:41 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-08 16:49:56 -0500 |
commit | 5136df0f393567117b84d4580737e2920cc63f57 (patch) | |
tree | 7beff6092c1a524e886375b4872d75e0cd432f56 | |
parent | b283a1e06576821de6b3811a76b43ad081870dab (diff) |
paccache: use pacsort instead of sort -V
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-x | contrib/paccache.in | 4 |
1 files 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[@]}") |