Package: sbuild
Version: 0.57.4-1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

sbuild 0.57.4-1 doesn't want to build a .dsc file if the .dsc file is specified as a relative path:

D: DSC = ../some-package_1.1.0.2.dsc
D: Source Dir = ..
D: DSC Base = some-package_1.1.0.2.dsc
D: DSC File = some-package_1.1.0.2.dsc
D: DSC Dir = some-package_1.1.0.2.dsc
D: Package_Version = some-package_1.1.0.2
D: Package_SVersion = some-package_1.1.0.2
D: Package = some-package
D: Version = 1.1.0.2
D: SVersion = 1.1.0.2
D: Download = 0
D: Invalid Source = 1

This is a regression from previous version.  It as always worked.

The attached patch fixes the problem for me.

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.25-2-486

Debian Release: lenny/sid
  500 unstable        emacs.orebokech.com
  500 unstable        debian.yorku.ca
  500 stable          debian.yorku.ca
  500 oldstable       debian.yorku.ca
    1 experimental    debian.yorku.ca

--- Package information. ---
Depends                      (Version) | Installed
======================================-+-==============
perl                     (>= 5.6.0-16) | 5.10.0-11
perl-modules                           | 5.10.0-11
adduser                                | 3.108
apt                                    | 0.7.14+b1
exim4                                  | 4.67-1
 OR mail-transport-agent               |
dpkg-dev                               | 1.14.20
devscripts                (>= 2.10.26) | 2.10.33
dctrl-tools                            | 2.13.0
schroot                     (>= 1.1.6) | 1.2.1-1

diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index a76afb9..7044a2f 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -126,7 +126,7 @@ sub new ($$) {
     # Can sources be obtained?
     $self->{'Invalid Source'} = 0;
     $self->{'Invalid Source'} = 1
-	if ((!$self->{'Download'} && ! -f $self->{'DSC File'}) ||
+	if ((!$self->{'Download'} && ! -f $self->{'DSC'}) ||
 	    ($self->{'Download'} &&
 	     $self->{'DSC'} ne $self->{'Package_Version'}) ||
 	    (!defined $self->{'Version'}));

Reply via email to