Changeset 1645 in ProjectBuilder for devel/rpmbootstrap


Ignore:
Timestamp:
Sep 26, 2012, 2:26:13 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for a RedHat 6.2 VE by first making newve work, and rpmbootstrap support non-yum type of install with a full list of deps.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/rpmbootstrap/bin/rpmbootstrap

    r1603 r1645  
    449449        unlink("$vepath/tmp/$p1");
    450450    }
     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'}");
    451454}
    452455#
     
    533536    # TODO here too ?
    534537    $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);
    535554}
    536555
Note: See TracChangeset for help on using the changeset viewer.