Bug#342623: java-package: errors if J2SE_PACKAGE_FULL_NAME contains spaces

Andreas Beckmann debian at abeckmann.de
Fri Dec 9 01:34:54 UTC 2005


Package: java-package
Version: 0.27
Severity: normal
Tags: patch


make-jpkg prints error messages if J2SE_PACKAGE_FULL_NAME is set and
contains multiple words separated by spaces.
This happens because no quotes are used around the variable during this
test. I'm adding a small patch to fix this.

Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages java-package depends on:
ii  coreutils                     5.2.1-2.1  The GNU core utilities
ii  debhelper                     5.0.7      helper programs for debian/rules
ii  fakeroot                      1.5.5      Gives a fake root environment
ii  unzip                         5.52-5     De-archiver for .zip files

java-package recommends no packages.

-- no debconf information
-------------- next part --------------
--- /usr/bin/make-jpkg~dist	2005-11-09 17:09:50.000000000 +0100
+++ /usr/bin/make-jpkg	2005-12-09 00:59:06.000000000 +0100
@@ -18,13 +18,13 @@
 # environment variables, use it; otherwise, 
 # default to the name and email used by the 
 # Debian Java Maintainers project.
-if [ -z $J2SE_PACKAGE_FULL_NAME ]; then
+if [ -z "$J2SE_PACKAGE_FULL_NAME" ]; then
     maintainer_name="Debian Java Maintainers"
 else
     maintainer_name="$J2SE_PACKAGE_FULL_NAME"
 fi
 
-if [ -z $J2SE_PACKAGE_EMAIL ]; then
+if [ -z "$J2SE_PACKAGE_EMAIL" ]; then
     maintainer_email="pkg-java-maintainers at lists.alioth.debian.org"
 else
     maintainer_email="$J2SE_PACKAGE_EMAIL"


More information about the pkg-java-maintainers mailing list