Bug#823155: maven-debian-helper: mh_make fails to determine that apt-file is configured

2016-05-01 Thread Niels Thykier
On Sun, 01 May 2016 17:14:07 +0200 Peter Spiess-Knafl
 wrote:
> Package: maven-debian-helper
> Version: 2.0.6
> Severity: normal
> Tags: patch
> 
> Dear Maintainer,
> 
> mh_make is looking at a deprecated path for mvnDebug.
> 
> apt-file no longer references to mvnDebug at /usr/bin/mvnDebug but rather at
> /usr/share/maven/bin/mvnDebug
> 
> The attached patch fixes this problem.
> 
> Greetings
> Peter
> 
> [...]

Hi,

FTR, apt-file/3.0 has some new exit codes that might be interesting for you:

> EXIT CODES
>apt-file has the following defined exit codes, which can be used for 
> scripting purposes.
> 
>0   apt-file returned successfully.  If the command was a search, 
> there was at least one result.
> 
>1   apt-file completed a search successfully, but it had no results.
> 
>2   An error occurred (including invalid/conflicting user options).
> 
>3   apt-file could not complete the command because the cache was 
> empty.  Please ensure there are indices enabled in the APT config and run apt 
> update to fetch them.
> 
>4   apt-file could not complete the command because the cache does not 
> have any files matching the restrictions.  Either change the restrictions 
> (e.g. --index-names) or configure apt to fetch the relevant files and
>run apt update.
> 
>255 There was an internal errors / uncaught exception in apt-file.  
> Please file a bug against apt-file.
> 
>Any other exit code is reserved for future use.

Please note that apt-file/3.0 requires a very recent version of APT and
is unlikely to be backported.

Thanks,
~Niels

__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#823155: maven-debian-helper: mh_make fails to determine that apt-file is configured

2016-05-01 Thread Peter Spiess-Knafl
Package: maven-debian-helper
Version: 2.0.6
Severity: normal
Tags: patch

Dear Maintainer,

mh_make is looking at a deprecated path for mvnDebug.

apt-file no longer references to mvnDebug at /usr/bin/mvnDebug but rather at
/usr/share/maven/bin/mvnDebug

The attached patch fixes this problem.

Greetings
Peter



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'testing-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages maven-debian-helper depends on:
ii  default-jdk 2:1.8-57
ii  libmaven-clean-plugin-java  2.5-1
ii  libmaven-compiler-plugin-java   3.2-5
ii  libmaven-jar-plugin-java2.4-1
ii  libmaven-resources-plugin-java  2.6-1
ii  libmaven-site-plugin-java   2.1-4
ii  libplexus-velocity-java 1.1.8-1
ii  libsurefire-java2.17-2
ii  libxml2-utils   2.9.3+dfsg1-1
ii  maven   3.3.9-3
ii  maven-repo-helper   1.8.12
ii  unzip   6.0-20
ii  velocity1.7-4

maven-debian-helper recommends no packages.

Versions of packages maven-debian-helper suggests:
ii  apt-file  3.0
ii  devscripts2.16.2
pn  libmaven-javadoc-plugin-java  
pn  subversion

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/mh_make (from maven-debian-helper package)
diff --git a/bin/mh_make b/bin/mh_make
index 62fe036..2bcf4ff 100755
--- a/bin/mh_make
+++ b/bin/mh_make
@@ -134,7 +134,7 @@ if [ ! -x /usr/bin/apt-file ]; then
 exit 1
 else
 res="ok"
-apt-file search /usr/bin/mvnDebug | grep maven > /dev/null || res="failed"
+apt-file search /usr/share/maven/bin/mvnDebug | grep maven > /dev/null || res="failed"
 if [ $? != 0 ] || [ "$res" == "failed" ]; then
 echo "Warning: apt-file doesn't seem to be configured"
 apt-file update
__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.