summaryrefslogtreecommitdiff
path: root/dh_builddeb
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-08-30 15:38:49 +0200
committerNiels Thykier <niels@thykier.net>2015-08-30 15:38:49 +0200
commitb418f73de540dcc3c050c935dab90eed23fe610c (patch)
tree5caed123b329ff125730d56bbe9175bb7fd26012 /dh_builddeb
parent1f231086d682ee45c9f8f85b25e6c7d02d319007 (diff)
downloaddebhelper-b418f73de540dcc3c050c935dab90eed23fe610c.tar.gz
dh_builddeb: Let dpkg determine the udeb filename by default
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_builddeb')
-rwxr-xr-xdh_builddeb9
1 files changed, 3 insertions, 6 deletions
diff --git a/dh_builddeb b/dh_builddeb
index e36f0a3b..cf35c077 100755
--- a/dh_builddeb
+++ b/dh_builddeb
@@ -139,12 +139,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
doit("dpkg-deb", @{$dh{U_PARAMS}}, "--build", $tmp, $dh{DESTDIR}.$dh{FILENAME});
}
else {
- my $filename=$dh{FILENAME};
- if (! $filename) {
- $filename="/".udeb_filename($package);
- }
- doit("dpkg-deb", "-z1", "-Zxz", "-Sextreme",
- @{$dh{U_PARAMS}}, "--build", $tmp, $dh{DESTDIR}.$filename);
+ my @dpkg_args = default_compressor_args(["-z1", "-Zxz", "-Sextreme"],
+ @{$dh{U_PARAMS}});
+ doit("dpkg-deb", @dpkg_args, "--build", $tmp, $dh{DESTDIR}.$dh{FILENAME});
}
exit 0;
}