Bug#823155: maven-debian-helper: mh_make fails to determine that apt-file is configured
Niels Thykier
niels at thykier.net
Sun May 1 16:05:29 UTC 2016
On Sun, 01 May 2016 17:14:07 +0200 Peter Spiess-Knafl
<dev at spiessknafl.at> 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
More information about the pkg-java-maintainers
mailing list