On Sun, Feb 24, 2008 at 09:09:29PM +0000, Roger Leigh wrote:
> Niko Tyni <[EMAIL PROTECTED]> 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   [EMAIL PROTECTED]
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));
            }

Reply via email to