Changeset 1516


Ignore:
Timestamp:
May 10, 2012, 6:07:24 PM (7 years ago)
Author:
bruno
Message:

r4764@localhost: bruno | 2012-05-10 15:13:10 +0200

  • Distribution.pm: Fix the code to check to see if a package is installed. dpkg -L <package> can succeed on an installed but not configured package, however, dpkg-buildpackage will later fail. Fix is to check that the package is in the ii state. (Eric Anderson)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r1515 r1516  
    432432        my $res = pb_system("dpkg -L $p","","quiet", 1);
    433433        next if ($res eq 0);
     434        open(CMD,"dpkg -l $p |") or die "Unable to run dpkg -l $p: $!";
     435        my $ok = 0;
     436        while (<CMD>) {
     437            $ok = 1 if /^ii\s+$p/;
     438        }
     439        next if $ok;
    434440    } elsif ($pbos->{'type'} eq "ebuild") {
    435441    } else {
Note: See TracChangeset for help on using the changeset viewer.