- Timestamp:
- Jan 4, 2014, 10:11:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/rpmbootstrap/bin/rpmbootstrap
r1812 r1815 259 259 die pb_log(0,"No target-dir specified and no default vepath found in $ENV{'PBETC'}\n") if (not defined $vepath); 260 260 261 pb_mkdir_p($vepath) if (! -d $vepath); 261 # Cleanup first 262 if ( -d $vepath) { 263 pb_rm_rf($vepath); 264 } 265 pb_mkdir_p($vepath); 262 266 263 267 # … … 285 289 die "No mirror defined for $pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}" if ((not defined $mirror) || ($mirror =~ /^\t*$/)); 286 290 my $resp; 291 my $repo; 287 292 my @list_pkg; 288 293 289 $resp= rbs_mirror_response($mirror);294 ($repo,$resp) = rbs_mirror_response($mirror); 290 295 @list_pkg = split(/\n/,$resp->as_string()); 291 296 292 297 # If an update source is availble add it after so that these pkgs update the main ones 293 298 if (defined $updater) { 294 $resp = rbs_mirror_response($mirror.$updater); 299 my $void; 300 ($void,$resp) = rbs_mirror_response($mirror.$updater); 295 301 push(@list_pkg,split(/\n/,$resp->as_string())); 296 302 } … … 299 305 my $parch = $pbos->{'arch'}; 300 306 $parch = "i[3456]86" if ($pbos->{'arch'} eq "i386"); 301 my $repowithletter = 0;302 307 303 308 # Get the list of packages and their URL in this hash … … 366 371 my $lwpkg =""; 367 372 my @installed_packages; 373 374 # On systemd systems, the pkg needs to be first 375 # to have the correct links made first 376 if ($pkgs =~ /,filesystem,/) { 377 $pkgs =~ s/,filesystem,/,/; 378 $pkgs = "filesystem,".$pkgs; 379 } 368 380 369 381 foreach my $p (split(/,/,$pkgs)) { … … 502 514 pb_system("sed -i -e 's/^mirrorlist/#mirrorlist/' $i","","quiet"); 503 515 # rather use neutral separators here 504 pb_system("sed -i -e 's|^#baseurl.*\$|baseurl=$ mirror|' $i","","quiet");516 pb_system("sed -i -e 's|^#baseurl.*\$|baseurl=$repo|' $i","","quiet"); 505 517 } 506 518 $minipkglist = "ldconfig yum passwd vim-minimal dhclient authconfig"; … … 709 721 } 710 722 } 711 return($re sponse);712 } 713 723 return($repo,$response); 724 } 725
Note:
See TracChangeset
for help on using the changeset viewer.