Bug#289006: java-package errors when checking free disk space on system with devfs

Tomas Hoger Tomas Hoger <thoger@pobox.sk>, 289006@bugs.debian.org
Thu Feb 3 19:06:42 2005


reopen 289006 !
thanks

Hi Java-Package maintainers!

Bug #289006 is not resolved in 0.19 version.  I've tested on system with
devfs and I got following error:


Checking free diskspace:/usr/bin/make-jpkg: line 34: [: 56%: integer
expression expected
/usr/bin/make-jpkg: line 37: [: 56%: integer expression expected


WARNING: Possibly not enough free disk space in
"/tmp/make-jpkg.XXXXUTEMhQ".

You need at least 194 MB, but only 56% MB seems free. Note: You
can specify an alternate directory by setting the environment variable


Fix to this issue is simple, just replace integer comparison on line 34 in
/usr/share/java-package/common.sh with string comparison (since $free can
be e.g. 56%).  So:

        if [ "$free" -ne "${free%\%}" ]; then

should be:

        if [ "$free" != "${free%\%}" ]; then

HTH

Regards,

Tomas