summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
diff options
context:
space:
mode:
authorOliver Tappe2007-03-17 16:12:26 +0100
committerOliver Tappe2007-03-17 16:12:26 +0100
commit13741de77584dd38da9fd2f911c54e1bff0648ea (patch)
treedcfb867f6a9d9d1f301703ef142a0a2eb89e5038 /installer/OpenSLX/OSSetup/MetaPackager/yum.pm
parent* added executeInSubprocess() which encapsulates the starting and (diff)
downloadcore-13741de77584dd38da9fd2f911c54e1bff0648ea.tar.gz
core-13741de77584dd38da9fd2f911c54e1bff0648ea.tar.xz
core-13741de77584dd38da9fd2f911c54e1bff0648ea.zip
* switched from using system() to slxsystem()
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@782 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, 6 insertions, 6 deletions
diff --git a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
index ca472074..de03ffe1 100644
--- a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
+++ b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
@@ -48,9 +48,9 @@ sub setupPackageSource
$repoURL .= "/$repoInfo->{'repo-subdir'}";
}
my $repoDescr = "[$repoName]\nname=$repoInfo->{name}\nbaseurl=$repoURL\n";
- system("cp /proc/cpuinfo $self->{engine}->{'vendor-os-path'}/proc");
- system("rm -f $self->{engine}->{'vendor-os-path'}/etc/yum.repos.d/*");
- system("mkdir -p $self->{engine}->{'vendor-os-path'}/etc/yum.repos.d");
+ slxsystem("cp /proc/cpuinfo $self->{engine}->{'vendor-os-path'}/proc");
+ slxsystem("rm -f $self->{engine}->{'vendor-os-path'}/etc/yum.repos.d/*");
+ slxsystem("mkdir -p $self->{engine}->{'vendor-os-path'}/etc/yum.repos.d");
my $repoFile
= "$self->{engine}->{'vendor-os-path'}/etc/yum.repos.d/$repoName.repo";
open(REPO, "> $repoFile")
@@ -63,7 +63,7 @@ sub updateBasicVendorOS
{
my $self = shift;
- if (system("yum -y update")) {
+ if (slxsystem("yum -y update")) {
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");
@@ -77,10 +77,10 @@ sub installSelection
my $self = shift;
my $pkgSelection = shift;
- if (system("yum -y install $pkgSelection")) {
+ if (slxsystem("yum -y install $pkgSelection")) {
die _tr("unable to install selection (%s)\n", $!);
}
- system('rm /proc/cpuinfo');
+ slxsystem('rm /proc/cpuinfo');
}
1; \ No newline at end of file