[buildd-tools-devel] Bug#679574: here's a fix
Adam Borowski
kilobyte at angband.pl
Thu Aug 28 20:08:02 UTC 2014
Control: tags -1 +patch
It looks like the revision is appended only if it's boolean value by Perl's
rules is non-zero. The string "0" happens to be false.
This patch fixes the problem:
--- sbuild-0.64.1.orig/lib/Sbuild/Build.pm
+++ sbuild-0.64.1/lib/Sbuild/Build.pm
@@ -196,7 +196,7 @@ sub set_version {
# Version with binNMU or other additions and stripped epoch
my $sversion = $b_version;
- $sversion .= '-' . $b_revision if $b_revision;
+ $sversion .= '-' . $b_revision if $b_revision ne '';
$self->set('Package', $pkg);
$self->set('Version', $version);
--
// If you believe in so-called "intellectual property", please immediately
// cease using counterfeit alphabets. Instead, contact the nearest temple
// of Amon, whose priests will provide you with scribal services for all
// your writing needs, for Reasonable and Non-Discriminatory prices.
More information about the Buildd-tools-devel
mailing list