+2008-01-01 Guillem Jover <guillem@debian.org>
+
+ * scripts/dpkg-buildpackage.pl: Use Dpkg::Compression. Use $comp_regex
+ to match compressed diffs and tarballs.
+
2008-01-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
* utils/start-stop-daemon.c (do_stop): Do not print 'failed to kill'
* Do not print 'failed to kill' warning in start-stop-daemon when polling
the pid. Closes: #157305, #352554
Thanks to Samuel Thibault.
+ * Properly print build message in dpkg-buildpackage for lzma and bzip2
+ compressed sources. Closes: #458519
[ Updated dpkg translations ]
* Norwegian Bokmål (Hans Fredrik Nordhaug). Closes: #457918
use Dpkg::ErrorHandling qw(warning error failure syserr subprocerr usageerr
$warnable_error);
use Dpkg::BuildOptions;
+use Dpkg::Compression;
push (@INC, $dpkglibdir);
require 'controllib.pl';
my $srcmsg;
if (fileomitted '\.deb') {
# source only upload
- if (fileomitted '\.diff\.gz') {
+ if (fileomitted "\.diff\.$comp_regex") {
$srcmsg = _g('source only upload: Debian-native package');
- } elsif (fileomitted '\.orig\.tar\.gz') {
+ } elsif (fileomitted "\.orig\.tar\.$comp_regex") {
$srcmsg = _g('source only, diff-only upload (original source NOT included)');
} else {
$srcmsg = _g('source only upload (original source is included)');
$srcmsg = _g('full upload (original source is included)');
if (fileomitted '\.dsc') {
$srcmsg = _g('binary only upload (no source included)');
- } elsif (fileomitted '\.diff\.gz') {
+ } elsif (fileomitted "\.diff\.$comp_regex") {
$srcmsg = _g('full upload; Debian-native package (full source is included)');
- } elsif (fileomitted '\.orig\.tar\.gz') {
+ } elsif (fileomitted "\.orig\.tar\.$comp_regex") {
$srcmsg = _g('binary and diff upload (original source NOT included)');
} else {
$srcmsg = _g('full upload (original source is included)');