--- sbuild-0.63.2.orig/debian/changelog
+++ sbuild-0.63.2/debian/changelog
@@ -1,3 +1,16 @@
+sbuild (0.63.2-1.1.4.201403181643) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Tue, 18 Mar 2014 16:43:32 +0100
+
+sbuild (0.63.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix building packages with revision "0" (Closes: #687396)
+
+ -- Roland Stigge <stigge@antcom.de>  Wed, 05 Dec 2012 14:44:45 +0100
+
 sbuild (0.63.2-1) unstable; urgency=low
 
   [ Roger Leigh ]
--- sbuild-0.63.2.orig/lib/Sbuild/Build.pm
+++ sbuild-0.63.2/lib/Sbuild/Build.pm
@@ -177,16 +177,14 @@
     my ($pkg, $version) = split /_/, $pkgv;
     my $pver = Dpkg::Version->new($version, check => 1);
     return if (!defined($pkg) || !defined($version) || !defined($pver));
-    my ($o_version, $o_revision);
+    my ($o_version);
     $o_version = $pver->version();
-    $o_revision = $pver->revision();
-    $o_revision = "" if $pver->{'no_revision'};
 
     # Original version (no binNMU or other addition)
     my $oversion = $version;
     # Original version with stripped epoch
     my $osversion = $o_version;
-    $osversion .= '-' . $o_revision if $o_revision;
+    $osversion .= '-' . $pver->revision() unless $pver->{'no_revision'};
 
     # Add binNMU to version if needed.
     if ($self->get_conf('BIN_NMU') || $self->get_conf('APPEND_TO_VERSION')) {
