summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
diff options
context:
space:
mode:
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');
}