[pacman-dev] [PATCH 3/3] paccache: use pacsort instead of sort -V

Dave Reisner d at falconindy.com
Sun Aug 7 19:47:59 EDT 2011


Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
...and the whole point of these selfish patches.

 contrib/paccache.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/paccache.in b/contrib/paccache.in
index 0bd0cf7..1dcce1e 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -165,7 +165,7 @@ summarize() {
 				else
 					printf "%s$delim" "$pkg"
 				fi
-			done < <(printf '%s\n' "$@" | sort -V)
+			done < <(printf '%s\n' "$@" | pacsort)
 			printf '\n' >&2
 		fi
 
@@ -267,7 +267,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[@]}")
-- 
1.7.6



More information about the pacman-dev mailing list