Changeset 964 in ProjectBuilder
- Timestamp:
- Feb 8, 2010, 3:47:40 AM (15 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r963 r964 138 138 # $opt="--exclude=*.i?86"; 139 139 # } 140 pb_log(2,"DEBUG: pb_distro_init: $ddir, $dver, $dfam, $dtype, $dsuf, $dupd, $darch\n"); 140 141 141 142 return($ddir, $dver, $dfam, $dtype, $dsuf, $dupd, $darch); … … 441 442 $param = ""; 442 443 } 444 pb_log(2,"DEBUG: pb_distro_get_param on ",Dumper($opt)," returns $param\n"); 443 445 return($param); 444 446 -
devel/pb/bin/pb
r963 r964 1744 1744 if ($dtype eq "rpm") { 1745 1745 1746 my $verpmstyle = pb_distro_get_param($ddir,$dver,$darch,$verpmtype);1746 my $verpmstyle = $verpmtype->{$ENV{'PBPROJ'}}; 1747 1747 if ($verpmstyle eq "rinse") { 1748 1748 # Need to reshape the mirrors generated with local before-post-install script … … 1789 1789 # Once setup we need to install some packages, the pb account, ... 1790 1790 pb_system("sudo /usr/sbin/mock --install --configdir=\"$veconf->{$ENV{'PBPROJ'}}\" -r $v su","Configuring the mock VE"); 1791 } else { 1792 die "Unknown verpmtype type $verpmstyle. Report to dev team"; 1791 1793 } 1792 1794 } elsif ($dtype eq "deb") { 1793 my $vedebstyle = pb_distro_get_param($ddir,$dver,$darch,$vedebtype);1795 my $vedebstyle = $vedebtype->{$ENV{'PBPROJ'}}; 1794 1796 my $codename = pb_distro_get_param($ddir,$dver,$darch,$oscodename); 1795 1797 my $postparam = ""; … … 1807 1809 $darch = "amd64" if ($darch eq "x86_64"); 1808 1810 if ($vedebstyle eq "debootstrap") { 1809 pb_system("sudo /usr/sbin/debootstrap --arch=$darch $codename \"$vepath->{$ENV{'PBPROJ'}}/$ddir/$dver/$darch\" $addpkgs","Creating the debootstrap VE for $ddir-$dver ($darch)", "verbose"); 1811 my $dbsverb = ""; 1812 $dbsverb = "--verbose" if ($pbdebug gt 0); 1813 1814 pb_system("sudo /usr/sbin/debootstrap $dbsverb --arch=$darch $addpkgs $codename \"$vepath->{$ENV{'PBPROJ'}}/$ddir/$dver/$darch\"","Creating the debootstrap VE for $ddir-$dver ($darch)", "verbose"); 1815 } else { 1816 die "Unknown vedebtype type $vedebstyle. Report to dev team"; 1810 1817 } 1811 1818 } elsif ($dtype eq "ebuild") { … … 2202 2209 } elsif ($vtype eq "ve") { 2203 2210 # We need to finish the setup of packages needed in the VE if needed 2204 # rinse/deboo strap at least needs it2211 # rinse/debootstrap at least needs it 2205 2212 my ($vepkglist,$osmindep) = pb_conf_get_if("vepkglist","osmindep"); 2206 2213 -
projects/rinse/pbconf/devel/conf/.pbrc
r947 r964 6 6 verpmtype default = rinse 7 7 # Possible value is debootstrap 8 vedebtype default = deboo strap8 vedebtype default = debootstrap 9 9 # Path to store the VE 10 10 vepath default = /home/rinse
Note:
See TracChangeset
for help on using the changeset viewer.