From 5234fd61b731214f8eff61ba31d9501971284d7e Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 14 Mar 2007 17:55:48 +0000 Subject: * cleanup git-svn-id: http://svn.openslx.org/svn/openslx/trunk@769 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/MetaPackager/yum.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'installer/OpenSLX/OSSetup/MetaPackager/yum.pm') diff --git a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm index e2134e84..ca472074 100644 --- a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm +++ b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm @@ -54,17 +54,21 @@ sub setupPackageSource my $repoFile = "$self->{engine}->{'vendor-os-path'}/etc/yum.repos.d/$repoName.repo"; open(REPO, "> $repoFile") - or die _tr("unable to create repo-file <%s> (%s)", $repoFile, $1); + or die _tr("unable to create repo-file <%s> (%s)\n", $repoFile, $1); print REPO $repoDescr; close(REPO); } -sub updateBasicSystem +sub updateBasicVendorOS { my $self = shift; if (system("yum -y update")) { - die _tr("unable to update basic system (%s)", $!); + if ($! == 2) { + # file not found => yum isn't installed + die _tr("unable to update this vendor-os, as it seems to lack an installation of yum!\n"); + } + die _tr("unable to update this vendor-os (%s)\n", $!); } } @@ -74,7 +78,7 @@ sub installSelection my $pkgSelection = shift; if (system("yum -y install $pkgSelection")) { - die _tr("unable to install selection (%s)", $!); + die _tr("unable to install selection (%s)\n", $!); } system('rm /proc/cpuinfo'); } -- cgit v1.2.3-55-g7522