[debian-edu-commits] debian-edu/ 57/183: Allow specifying sort-order by fieldnumber (in addition to field-name)

Alexander Alemayhu ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.

commit 6d91fd2b3eb6edd7a553661bc665086ae51a3f3c
Author: Bart Cornelis <cobaco at linux.be>
Date:   Thu May 12 18:53:54 2005 +0000

    Allow specifying sort-order by fieldnumber (in addition to field-name)
---
 list-desktop-profiles | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/list-desktop-profiles b/list-desktop-profiles
index 36af16c..2d42ac4 100644
--- a/list-desktop-profiles
+++ b/list-desktop-profiles
@@ -96,16 +96,16 @@ while test $# -ge 1; do
 
 	-s | --sort-key)
 	  case $2 in
-	    NAME | name) SORT_KEY=1 ;;
-	    KIND | kind) SORT_KEY=2 ;;
-	    LOCATION | location) SORT_KEY=3 ;;
-	    PRECEDENCE| precedence) 
+	    NAME | name | 1) SORT_KEY=1 ;;
+	    KIND | kind | 2) SORT_KEY=2 ;;
+	    LOCATION | location | 3) SORT_KEY=3 ;;
+	    PRECEDENCE| precedence | 4) 
 	      SORT_KEY=4 
 	      SORT_ARGS='--general-numeric-sort --reverse';
 	    ;;
-	    REQUIREMENTS | requirements) SORT_KEY=5 ;;
-	    DESCRIPTION | description) SORT_KEY=6 ;;
-         
+	    REQUIREMENTS | requirements | 5) SORT_KEY=5 ;;
+	    DESCRIPTION | description | 6) SORT_KEY=6 ;;
+
 	    *)
 	      print_help;
 	      exit;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git



More information about the debian-edu-commits mailing list