[java-policy] 110/198: Applied patch from Thierry Basque that fixes the --list argument for update-java-alternatives.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Sep 23 07:49:36 UTC 2015


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

ebourg-guest pushed a commit to branch master
in repository java-policy.

commit 68e749d5155353713f6a28df81a49d0f189fd32a
Author: Niels Thykier <nthykier at debian.org>
Date:   Tue Apr 6 22:34:12 2010 +0000

    Applied patch from Thierry Basque that fixes the --list argument for update-java-alternatives.
---
 debian/changelog                 | 2 ++
 scripts/update-java-alternatives | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 27580c2..104dd64 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ java-common (0.36) UNRELEASED; urgency=low
     (Closes: #576632)
   * Removed Stefan Gybas from Uploaders (no upload since 2003); thanks
     for your work.
+  * Applied patch from Thierry Basque that fixes the --list
+    argument for update-java-alternatives. (Closes: #563070)
 
  -- Niels Thykier <niels at thykier.net>  Tue, 06 Apr 2010 21:45:15 +0200
 
diff --git a/scripts/update-java-alternatives b/scripts/update-java-alternatives
index bffaa70..aadbb5e 100755
--- a/scripts/update-java-alternatives
+++ b/scripts/update-java-alternatives
@@ -117,9 +117,9 @@ do_auto()
 do_list()
 {
     vecho "listing java alternatives:"
-    for i in $top/${jname:-*}.jinfo; do
-	alias=$(basename ${i%*.jinfo})
-	alias=${alias#.*}
+    for i in ${jinfo:-$top/*.jinfo}; do
+	alias=$(basename ${i%.jinfo})
+	alias=${alias#.}
 	prio=$(awk -F= '/priority=/ {print $2}' $i)
 	echo $alias $prio $top/$alias
 	[ -n "$verbose" ] && egrep "$which" $i

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/java-policy.git



More information about the pkg-java-commits mailing list