Bug#740346: mh_installpom - will always exit non-zero if called with -n

Matthew Vernon mcv21 at cam.ac.uk
Fri Feb 28 13:24:53 UTC 2014


Package: maven-repo-helper
Version: 1.8.7
Severity: normal

Hi,

the -n "do nothing, print what would have been done" argument to
mh_installpom is mishandled. Specifically, what will happen is:

mh_cleanpom is called with -n [correct] once with --keep-pom-version
and once without.

source debian/.mh/pom.properties

This line will always fail, since mh_cleanpom -n will have done
nothing, so not created debian/.mh/pom.properties.

Indeed, if debian/.mh/pom.properties did exist, then mh_installpom
would continue on and try to install poms that it found in debian/.mh,
in violation of the "-n" argument which means it shouldn't do such a
thing.

Regards,

Matthew

-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages maven-repo-helper depends on:
ii  default-jre-headless [java2-runtime-headless]    1:1.6-47
ii  libstax-java                                     1.2.0-3
ii  openjdk-6-jre-headless [java2-runtime-headless]  6b27-1.12.6-1~deb7u1

Versions of packages maven-repo-helper recommends:
ii  debhelper  9.20120909

Versions of packages maven-repo-helper suggests:
ii  maven-debian-helper  1.6.7

-- no debconf information



More information about the pkg-java-maintainers mailing list