[Buildd-tools-devel] Bug#395271: Bug#395271: sbuild: incorrectly handles versioned provides

Niko Tyni ntyni at debian.org
Sun Feb 24 21:15:53 UTC 2008


On Sun, Feb 24, 2008 at 09:09:29PM +0000, Roger Leigh wrote:
> Niko Tyni <ntyni at debian.org> writes:
> 
> > Please consider the attached trivial patch.
> 
> Thanks.  But, did you attach it?  I didn't see it.

Hmph, sorry. Here we go for real.

Cheers,
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
diff --git a/bin/sbuild b/bin/sbuild
index 0e86b7c..fa4bad2 100755
--- a/bin/sbuild
+++ b/bin/sbuild
@@ -1549,7 +1549,7 @@ sub get_dpkg_status {
 	if ($status !~ /\sinstalled$/) {
 	    $result{$pkg}->{'Installed'} = 0
 		if !(exists($result{$pkg}) &&
-		     $result{$pkg}->{'Version'} eq '=*=PROVIDED=*=');
+		     $result{$pkg}->{'Version'} eq '~*=PROVIDED=*=');
 	    next;
 	}
 	if (!defined $version || $version eq "") {
@@ -1561,7 +1561,7 @@ sub get_dpkg_status {
 	if isin( $pkg, @interest );
 	if ($provides) {
 	    foreach (split( /\s*,\s*/, $provides )) {
-		$result{$_} = { Installed => 1, Version => '=*=PROVIDED=*=' }
+		$result{$_} = { Installed => 1, Version => '~*=PROVIDED=*=' }
 		if isin( $_, @interest ) and (not exists($result{$_}) or
 					      ($result{$_}->{'Installed'} == 0));
 	    }


More information about the Buildd-tools-devel mailing list