public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13723 - main/trunk/bin
@ 2009-06-28 16:12 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2009-06-28 16:12 UTC (permalink / raw
  To: gentoo-commits

Author: vapier
Date: 2009-06-28 16:12:28 +0000 (Sun, 28 Jun 2009)
New Revision: 13723

Modified:
   main/trunk/bin/etc-update
Log:
make sure etc-update sorts updates in the order (1) leading dir path (2) filename (3) cfg update

Modified: main/trunk/bin/etc-update
===================================================================
--- main/trunk/bin/etc-update	2009-06-28 14:48:34 UTC (rev 13722)
+++ main/trunk/bin/etc-update	2009-06-28 16:12:28 UTC (rev 13723)
@@ -63,8 +63,8 @@
 		# The below set -f turns off file name globbing in the ${find_opts} expansion.
 		for file in $(set -f ; find ${path}/ ${find_opts} \
 		       ! -name '.*~' ! -iname '.*.bak' -print |
-			   sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" |
-			   sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'); do
+			   sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\1%\2\%\3:" |
+			   sort -t'%' -k2,2 -k4,4 -k3,3 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'); do
 
 			rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")
 			rfile=$(echo "${file/\/\///}" | sed -e "s:^.*/::")




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-28 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-28 16:12 [gentoo-commits] portage r13723 - main/trunk/bin Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox