diff options
Diffstat (limited to 'installer/OpenSLX')
| -rw-r--r-- | installer/OpenSLX/OSExport/Engine.pm | 3 | ||||
| -rw-r--r-- | installer/OpenSLX/OSSetup/Engine.pm | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSExport/Engine.pm b/installer/OpenSLX/OSExport/Engine.pm index c8b384d3..12d4b862 100644 --- a/installer/OpenSLX/OSExport/Engine.pm +++ b/installer/OpenSLX/OSExport/Engine.pm @@ -184,6 +184,9 @@ sub _initialize my $exportName = shift; my $exportType = lc(shift); + if ($vendorOSName eq '<<<default>>>') { + die _tr("you can't do that with the default vendor-OS!\n"); + } if (!grep { $_ eq $exportType } @supportedExportTypes) { vlog(0, _tr("Sorry, export type '%s' is unsupported.\n", $exportType) diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm index 9b2c6aba..914045fc 100644 --- a/installer/OpenSLX/OSSetup/Engine.pm +++ b/installer/OpenSLX/OSSetup/Engine.pm @@ -144,6 +144,9 @@ sub initialize my $vendorOSName = shift; my $actionType = shift; + if ($vendorOSName eq '<<<default>>>') { + die _tr("you can't do that with the default vendor-OS!\n"); + } if ($vendorOSName !~ m[^([^\-]+\-[^\-]+)(?:\-(.+))?]) { die _tr( "Given vendor-OS has unknown format, expected '<name>-<release>[-<selection>]'\n" |
