diff options
author | Oliver Tappe | 2008-03-17 21:49:30 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-03-17 21:49:30 +0100 |
commit | e47dd852f40bc2411ebb500ac275fef198fec45c (patch) | |
tree | d2e5135b785981415be1a9f58f987afe0e1df49b /installer/OpenSLX/OSSetup/MetaPackager/yum.pm | |
parent | * removed bogus packages called 'gpg-pubkey' - we handle those explicitly, an... (diff) | |
download | core-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/yum.pm')
-rw-r--r-- | installer/OpenSLX/OSSetup/MetaPackager/yum.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm index 7d2bc630..eef310fe 100644 --- a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm +++ b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm @@ -71,19 +71,21 @@ sub setupPackageSource return 1; } -sub installSelection +sub installPackages { - my $self = shift; - my $pkgSelection = shift; + my $self = shift; + my $packages = shift; + + $packages =~ tr{\n}{ }; - if (slxsystem("yum -y install $pkgSelection")) { + if (slxsystem("yum -y install $packages")) { die _tr("unable to install selection (%s)\n", $!); } return 1; } -sub removeSelection +sub removePackages { my $self = shift; my $pkgSelection = shift; |