Changeset 696


Ignore:
Timestamp:
02/18/09 01:50:02 (4 years ago)
Author:
bruno
Message:
  • Fix a bug in distro for dep install on deb type of distro
  • Adds a basic network config file for VE when not available
Location:
devel
Files:
2 edited

Legend:

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

    r683 r696  
    386386    # In RPM this could include files, but we do not handle them atm. 
    387387    $regexp = '^BuildRequires:(.*)$'; 
    388 } elsif ($dtype eq "du") { 
     388} elsif ($dtype eq "deb") { 
    389389    $regexp = '^Build-Depends:(.*)$'; 
    390390} elsif ($dtype eq "ebuild") { 
     
    450450        my $res = pb_system("rpm -q --whatprovides --quiet $p","","quiet"); 
    451451        next if ($res eq 0); 
    452     } elsif ($dtype eq "du") { 
     452    } elsif ($dtype eq "deb") { 
    453453        my $res = pb_system("dpkg -L $p","","quiet"); 
    454454        next if ($res eq 0); 
  • devel/pb/bin/pb

    r687 r696  
    20602060 
    20612061pb_system("umount /proc"); 
     2062 
     2063# Create a basic network file if not already there 
     2064 
     2065my $nf="/etc/sysconfig/network"; 
     2066if (! -f $nf) { 
     2067    open(NF,"> $nf") || die "Unable to create $nf"; 
     2068    print NF "NETWORKING=yes\n"; 
     2069    print NF "HOSTNAME=localhost\n"; 
     2070    close(NF); 
     2071} 
     2072chmod 0755,$nf; 
    20622073EOF 
    20632074    } 
Note: See TracChangeset for help on using the changeset viewer.