summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Packager/rpm.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/Packager/rpm.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/Packager/rpm.pm')
-rw-r--r--installer/OpenSLX/OSSetup/Packager/rpm.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/installer/OpenSLX/OSSetup/Packager/rpm.pm b/installer/OpenSLX/OSSetup/Packager/rpm.pm
index 9956245a..06a808c8 100644
--- a/installer/OpenSLX/OSSetup/Packager/rpm.pm
+++ b/installer/OpenSLX/OSSetup/Packager/rpm.pm
@@ -35,7 +35,7 @@ sub unpackPackages
foreach my $pkg (@$pkgs) {
vlog 2, "unpacking package $pkg...";
- if (system("ash", "-c", "rpm2cpio $pkg | cpio -i -d")) {
+ if (slxsystem("ash", "-c", "rpm2cpio $pkg | cpio -i -d -u")) {
warn _tr("unable to unpack package <%s> (%s)", $pkg, $!);
# TODO: change this back to die() if cpio-ing fedora6-glibc
# doesn't crash anymore... (needs busybox update, I suppose)
@@ -53,7 +53,7 @@ sub importTrustedPackageKeys
foreach my $keyFile (@$keyFiles) {
vlog 2, "importing package key $keyFile...";
- if (system("rpm", "--root=$finalPath", "--import", "$keyFile")) {
+ if (slxsystem("rpm", "--root=$finalPath", "--import", "$keyFile")) {
die _tr("unable to import package key <%s> (%s)\n", $keyFile, $!);
}
}
@@ -67,11 +67,11 @@ sub installPrerequiredPackages
return unless defined $pkgs && scalar(@$pkgs);
- if (system("rpm", "--root=$finalPath", "-ivh", "--nodeps", "--noscripts",
+ if (slxsystem("rpm", "--root=$finalPath", "-ivh", "--nodeps", "--noscripts",
"--force", @$pkgs)) {
die _tr("error during prerequired-package-installation (%s)\n", $!);
}
- system("rm", "-rf", "$finalPath/var/lib/rpm");
+ slxsystem("rm", "-rf", "$finalPath/var/lib/rpm");
}
sub installPackages
@@ -82,7 +82,7 @@ sub installPackages
return unless defined $pkgs && scalar(@$pkgs);
- if (system("rpm", "--root=$finalPath", "-ivh", @$pkgs)) {
+ if (slxsystem("rpm", "--root=$finalPath", "-ivh", @$pkgs)) {
die _tr("error during package-installation (%s)\n", $!);
}
}