Changeset 1645 in ProjectBuilder for devel/rpmbootstrap/bin/rpmbootstrap
- Timestamp:
- Sep 26, 2012, 2:26:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/rpmbootstrap/bin/rpmbootstrap
r1603 r1645 449 449 unlink("$vepath/tmp/$p1"); 450 450 } 451 # RedHat 6.2 has a buggy termcap setup 452 } elsif ($pbos->{'name'} =~ /redhat/) { 453 pb_system("chroot $vepath ldconfig","Forcing ldconfig on $pbos->{'name'} $pbos->{'version'}"); 451 454 } 452 455 # … … 533 536 # TODO here too ? 534 537 $minipkglist = "ldconfig urpmi passwd vim-minimal dhcp-client"; 538 } elsif ($pbos->{'install'} =~ /\/rpm/) { 539 opendir(CDIR,$cachedir) || die "Unable to open directory $cachedir: $!"; 540 foreach my $p (@installed_packages) { 541 foreach my $f (readdir(CDIR)) { 542 # find an rpm package ref name-ver-tag.arch.rpm 543 next if ($f =~ /^\./); 544 if ($f =~ /^$p-([^-]+)-([^-]+)\.(noarch|$parch)\.rpm$/) { 545 # Copy it to the chroot and reference it 546 copy("$cachedir/$f","$vepath/var/cache"); 547 $minipkglist .= " /var/cache/$f"; 548 last; 549 } 550 } 551 rewinddir(CDIR); 552 } 553 closedir(CDIR); 535 554 } 536 555
Note:
See TracChangeset
for help on using the changeset viewer.