diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_steps.pm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index cb5e879e6..6f4f49070 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -715,9 +715,16 @@ sub configureServices { #------------------------------------------------------------------------------ sub configurePrinter { my ($o) = @_; - $o->do_pkgs->install('foomatic-filters', 'foomatic-db-engine', 'foomatic-db', 'printer-utils', 'printer-testpages', - if_($o->do_pkgs->is_installed('gimp'), 'gimpprint')); - + eval { + $o->do_pkgs->install('foomatic-filters', 'foomatic-db-engine', 'foomatic-db', 'printer-utils', 'printer-testpages', + if_($o->do_pkgs->is_installed('gimp'), 'gimpprint')); + }; + if ($@ =~ /rpm not found/) { + $o->cleanupPrinter; + log::l($@); + return; + } + require printer::main; eval { add2hash($o->{printer} ||= {}, printer::main::getinfo($o->{prefix})) }; #- get existing configuration. |