diff options
author | Oliver Tappe | 2007-07-28 16:11:27 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-07-28 16:11:27 +0200 |
commit | cbce11c51c6aa5674b01821a7adc7c31f7999c7e (patch) | |
tree | 38fd368f9b9d1a7db30131578d7fb77060d9800d /installer/OpenSLX/OSSetup/Packager/dpkg.pm | |
parent | * added example settings file for ubuntu-6.10 (diff) | |
download | core-cbce11c51c6aa5674b01821a7adc7c31f7999c7e.tar.gz core-cbce11c51c6aa5674b01821a7adc7c31f7999c7e.tar.xz core-cbce11c51c6aa5674b01821a7adc7c31f7999c7e.zip |
* changed several class interfaces as a result of trying to integrate support
for Debian & Ubunto installation (which is still not complete, though)
* fixed some bugs along the way (especially the meta-packagers trying to
invoke a private function of OpenSLX::OSSetup::Engine)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1281 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Packager/dpkg.pm')
-rw-r--r-- | installer/OpenSLX/OSSetup/Packager/dpkg.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/installer/OpenSLX/OSSetup/Packager/dpkg.pm b/installer/OpenSLX/OSSetup/Packager/dpkg.pm index cdd55e56..01867824 100644 --- a/installer/OpenSLX/OSSetup/Packager/dpkg.pm +++ b/installer/OpenSLX/OSSetup/Packager/dpkg.pm @@ -63,8 +63,12 @@ sub bootstrap if (slxsystem("ash", "-c", "rm -f debian-binary *.tar.gz")) { die _tr("unable to cleanup package '%s' (%s)", $debootstrapPkg, $!); } + my $arch = $self->{engine}->{distro}->{arch}; + my $releaseName = $self->{engine}->{distro}->{'release-name'}; + my $baseURL = $self->{engine}->{baseURLs}->[0]; my $debootstrapCmd = <<" END-OF-HERE"; - /usr/sbin/debootstrap --arch i386 edgy /slxbootstrap/slxfinal http://localhost:5080/srv/ftp/pub/ubuntu + /usr/sbin/debootstrap --verbose --arch $arch $releaseName \\ + /slxbootstrap/slxfinal $baseURL END-OF-HERE if (slxsystem("ash", "-c", "/bin/ash $debootstrapCmd")) { die _tr("unable to run debootstrap (%s)", $!); @@ -78,7 +82,7 @@ sub installPackages my $pkgs = shift; my $finalPath = shift; - return unless defined $pkgs && scalar(@$pkgs); + return unless defined $pkgs && @$pkgs; if (slxsystem("rpm", "--root=$finalPath", "-ivh", @$pkgs)) { die _tr("error during package-installation (%s)\n", $!); |