Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Previously, dh's API functions were sloppy in their return values but
*often* they would return a truth value. We changed that in 12.5 by
insisting on return undef. However, that broke addons relying on the
API function to work around Perl's idiom of "module must end with a
truth value".
To resolve that, we now always return a truth value from all API
functions to fix that. This also give consistent behaviour, which is
better than the previous setup.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
With the new "conditional" addon feature, it was possible to trigger a
gratious useless warning with a conditional override. Consider:
override_dh_foo-arch:
...
And dh_foo was added by an arch-only addon. Before this commit, we
would do:
debian/rules override_dh_foo-arch
dh_foo -a -N<for each arch:any package>
The latter call to dh_foo rightfully complained there was nothing to
do. With this commit, we correctly omit the latter call.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
We do not want to pay a non-trivial cost of loading Dpkg::Deps in
every helper (for cases where that is needed to parse th dh-sequence
clause).
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
build-depends
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Previously, we relied on a command being inserted in the -arch
sequence to be ordered correctly. With this rewrite, a command added
only to the -indep sequence will still appear in the right order.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Also, remove undocumented and useless compat code.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
It is not useful as the packager cannot set it to anything as it is
the builder that has an expectation of where the debs are produced.
It would have been a lot more useful if the builder could have
specified this value some how (but it would have to be aligned with
dpkg with e.g. for the .changes).
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Disable auto-abbreviation of command-line options in compat 13 and
re-enable dh's optimization for skipping redundant commands when
passed long options.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Since the beginning, debhelper has accepted abbrevated command line
parameters. Anyone that has been using (e.g.):
dh $@ --sourcedir=foo
To pass --sourcedir to dh_install has *also* implicitly passed it to
the dh_auto_* helpers. Due to auto-abbrevation being enabled, they
have considered it a short form of --sourcedirectory.
This is trivially confirmable by comparing:
dh_auto_configure --bar foo
Unknown option: bar
dh_auto_configure: unknown option or error during option parsing; aborting
with
dh_auto_configure --sourcedir foo
dh_auto_configure: invalid or non-existing path to the source directory: foo
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
It uses the freshest possible version of debhelper!
Closes: debian/debhelper!22
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
|