[buildd-tools-devel] Bug#529786: Bug#529786: The solution I'm applying

Roger Leigh rleigh at codelibre.net
Sat Jun 20 09:24:45 UTC 2009


On Tue, Jun 16, 2009 at 10:51:45AM -0300, Gustavo Noronha Silva wrote:
> Hey,
> 
> This is the solution I'm applying after upgrades, to keep my buildd
> working, I'm sure you'll find a cleaner way, but thought it could be
> useful:
> 
> --- /usr/share/perl5/Sbuild/Build.pm~   2009-06-16 09:07:15.000000000 +0100
> +++ /usr/share/perl5/Sbuild/Build.pm    2009-06-16 14:45:42.000000000 +0100
> @@ -168,6 +168,9 @@
>      $self->set('VersionEpoch', $epoch);
>      $self->set('VersionUpstream', $uversion);
>      $self->set('VersionDebian', $dversion);
> +    my $dscversion = ${oversion};
> +    $dscversion =~ s/^\d+://; # Strip epoch
> +    $self->set('DSC File', "${pkg}_${dscversion}.dsc");
>      $self->set('DSC Dir', "${pkg}-${uversion}");
>  }

Thanks.  Looking at the set_version function, I've done this which
should be exactly the same, but using existing variables:

diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index 433a04f..fb8ae04 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -168,7 +168,7 @@ sub set_version {
     $self->set('VersionEpoch', $epoch);
     $self->set('VersionUpstream', $uversion);
     $self->set('VersionDebian', $dversion);
-    $self->set('DSC File', "${pkg}_${oversion}.dsc");
+    $self->set('DSC File', "${pkg}_${sversion}.dsc");
     $self->set('DSC Dir', "${pkg}-${uversion}");
 }
 
Does this work for you also?  If so, I'll commit this change.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090620/bcb8015d/attachment.pgp>


More information about the Buildd-tools-devel mailing list