Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37477247
en ru br
Репозитории ALT
S:1.13-alt1
5.1: 1.09-alt2
4.1: 1.09-alt2
4.0: 1.09-alt2
3.0: 1.09-alt2
www.altlinux.org/Changes

Группа :: Разработка/Perl
Пакет: perl-Image-Xpm

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: perl-Image-Xpm-1.09-cpan-7438-filehandle.patch
Скачать


--- Image-Xpm-1.09/Xpm.pm~	2000-11-09 19:05:56 +0000
+++ Image-Xpm-1.09/Xpm.pm	2004-12-16 05:19:55 +0000
@@ -167,8 +167,9 @@ sub new { # Class and object method
     $self->{-cc} = ' ' x $self->{-cpp};
 
     my $file = $self->get('-file');
-    $self->load if defined $file and -r $file and not $self->{-pixels};
-
+    if (defined $file and not $self->{-pixels}) {
+       $self->load if ref $file or -r $file;
+    }
     croak "new() `$file' not found or unreadable" 
     if defined $file and not defined $self->get('-width');
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin