summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/MetaPackager/zypper.pm
diff options
context:
space:
mode:
authorOliver Tappe2008-03-17 21:49:30 +0100
committerOliver Tappe2008-03-17 21:49:30 +0100
commite47dd852f40bc2411ebb500ac275fef198fec45c (patch)
treed2e5135b785981415be1a9f58f987afe0e1df49b /installer/OpenSLX/OSSetup/MetaPackager/zypper.pm
parent* removed bogus packages called 'gpg-pubkey' - we handle those explicitly, an... (diff)
downloadcore-e47dd852f40bc2411ebb500ac275fef198fec45c.tar.gz
core-e47dd852f40bc2411ebb500ac275fef198fec45c.tar.xz
core-e47dd852f40bc2411ebb500ac275fef198fec45c.zip
* renamed installSelection() and removeSelection() to ...Packages(), as that's
what it is * automatically replace newlines in packagelist by a space git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1641 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/MetaPackager/zypper.pm')
-rw-r--r--installer/OpenSLX/OSSetup/MetaPackager/zypper.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/installer/OpenSLX/OSSetup/MetaPackager/zypper.pm b/installer/OpenSLX/OSSetup/MetaPackager/zypper.pm
index 04554e70..9a732af0 100644
--- a/installer/OpenSLX/OSSetup/MetaPackager/zypper.pm
+++ b/installer/OpenSLX/OSSetup/MetaPackager/zypper.pm
@@ -65,23 +65,25 @@ sub setupPackageSource
return 1;
}
-sub installSelection
+sub installPackages
{
- my $self = shift;
- my $pkgSelection = shift;
- my $doRefresh = shift || 0;
+ my $self = shift;
+ my $packages = shift;
+ my $doRefresh = shift || 0;
+
+ $packages =~ tr{\n}{ };
if ($doRefresh && slxsystem("zypper --non-interactive refresh")) {
die _tr("unable to update repo info (%s)\n", $!);
}
- if (slxsystem("zypper --non-interactive install $pkgSelection")) {
+ if (slxsystem("zypper --non-interactive install $packages")) {
die _tr("unable to install selection (%s)\n", $!);
}
return 1;
}
-sub removeSelection
+sub removePackages
{
my $self = shift;
my $pkgSelection = shift;