summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Engine.pm
diff options
context:
space:
mode:
authorOliver Tappe2007-02-23 21:55:07 +0100
committerOliver Tappe2007-02-23 21:55:07 +0100
commit3fd4dc02cf752e7d341e0c1ec3ad3bf4d636f56c (patch)
treef8c311779fe688bb1b5a98e1b48341232767322d /installer/OpenSLX/OSSetup/Engine.pm
parent* added support for importing the installed vendor-OS into the config-db (diff)
downloadcore-3fd4dc02cf752e7d341e0c1ec3ad3bf4d636f56c.tar.gz
core-3fd4dc02cf752e7d341e0c1ec3ad3bf4d636f56c.tar.xz
core-3fd4dc02cf752e7d341e0c1ec3ad3bf4d636f56c.zip
* some cleanup concerning the error message at the end of the installation
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@719 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Engine.pm')
-rw-r--r--installer/OpenSLX/OSSetup/Engine.pm22
1 files changed, 15 insertions, 7 deletions
diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm
index ba8d826a..abab54c7 100644
--- a/installer/OpenSLX/OSSetup/Engine.pm
+++ b/installer/OpenSLX/OSSetup/Engine.pm
@@ -143,6 +143,8 @@ sub installVendorOS
}
$self->stage1C_cleanupBasicSystem();
$self->setupStage1D();
+ vlog 0, _tr("Vendor-OS <%s> installed succesfully.\n",
+ $self->{'vendor-os-name'});
$self->addInstalledVendorOSToConfigDB();
}
@@ -152,6 +154,8 @@ sub updateVendorOS
my $self = shift;
$self->updateStage1D();
+ vlog 0, _tr("Vendor-OS <%s> updated succesfully.\n",
+ $self->{'vendor-os-name'});
}
sub addInstalledVendorOSToConfigDB
@@ -180,16 +184,16 @@ sub addInstalledVendorOSToConfigDB
{ 'name' => $vendorOSName },
'id');
if (defined $vendorOS) {
- print STDERR _tr("Vendor-OS <%s> already exists in OpenSLX-database!\n",
- $vendorOSName);
+ vlog 0, _tr("Vendor-OS <%s> already exists in OpenSLX-database!\n",
+ $vendorOSName);
} else {
my $id = addVendorOS($openslxDB, {
'name' => $vendorOSName,
'path' => $self->{'vendor-os-name'},
});
- print STDERR _tr("Vendor-OS <%s> has been added to DB (ID=%s)\n",
- $vendorOSName, $id);
+ vlog 0, _tr("Vendor-OS <%s> has been added to DB (ID=%s).\n",
+ $vendorOSName, $id);
}
disconnectConfigDB($openslxDB);
@@ -620,10 +624,14 @@ sub stage1D_installPackageSelection
my $pkgSelection = $self->{'distro-info'}->{selection}->{$selectionName};
my @pkgs
= grep { length($_) > 0 }
- map { $_ =~ s[^\s*(.+?)\s*$][$1]; $_ }
+ map { $_ =~ s[^\s*(.*?)\s*$][$1]; $_ }
split "\n", $pkgSelection;
- $self->{'meta-packager'}->installSelection(join " ", @pkgs);
-
+ if (scalar(@pkgs) == 0) {
+ vlog 0, _tr("No packages listed for selection <%s>, nothing to do.",
+ $selectionName);
+ } else {
+ $self->{'meta-packager'}->installSelection(join " ", @pkgs);
+ }
}
################################################################################