summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
diff options
context:
space:
mode:
authorOliver Tappe2007-03-14 18:55:48 +0100
committerOliver Tappe2007-03-14 18:55:48 +0100
commit5234fd61b731214f8eff61ba31d9501971284d7e (patch)
tree6b77100d156bb2ca5df21639ad59d9e7041a16d3 /installer/OpenSLX/OSSetup/MetaPackager/yum.pm
parent* the splitting of vendor-os-name into distro-name and selection-name is now ... (diff)
downloadcore-5234fd61b731214f8eff61ba31d9501971284d7e.tar.gz
core-5234fd61b731214f8eff61ba31d9501971284d7e.tar.xz
core-5234fd61b731214f8eff61ba31d9501971284d7e.zip
* cleanup
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@769 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/MetaPackager/yum.pm')
-rw-r--r--installer/OpenSLX/OSSetup/MetaPackager/yum.pm12
1 files changed, 8 insertions, 4 deletions
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');
}