summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-08 14:28:46 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-08 14:28:46 +0000
commitd1b1a87df13793d692a7d19167692624e207e9c2 (patch)
tree71c25685389a88522def3ab61d17a6f0441d224a /perl-install/install/steps_gtk.pm
parenta98516cd29c1a810ba39345e847590618913fa8c (diff)
downloaddrakx-d1b1a87df13793d692a7d19167692624e207e9c2.tar
drakx-d1b1a87df13793d692a7d19167692624e207e9c2.tar.gz
drakx-d1b1a87df13793d692a7d19167692624e207e9c2.tar.bz2
drakx-d1b1a87df13793d692a7d19167692624e207e9c2.tar.xz
drakx-d1b1a87df13793d692a7d19167692624e207e9c2.zip
(installPackages) continue installing if an advertising image is corrupted (#37674)
Diffstat (limited to 'perl-install/install/steps_gtk.pm')
-rw-r--r--perl-install/install/steps_gtk.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm
index 6ad982603..0546a12e8 100644
--- a/perl-install/install/steps_gtk.pm
+++ b/perl-install/install/steps_gtk.pm
@@ -543,7 +543,10 @@ sub installPackages {
$change_time = time();
my $f = $install::any::advertising_images[$i++ % @install::any::advertising_images];
log::l("advertising $f");
- gtkval_modify(\$advertising_image, $f);
+ eval { gtkval_modify(\$advertising_image, $f) };
+ if (my $err = $@) {
+ log::l("cannot load advertising image:\n" . formatError($err));
+ }
if (my $banner = $w->{window}{banner}) {
my ($title);