aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2010-03-02 14:51:24 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2010-03-02 14:51:24 +0000
commit0a04025a47ab63c8bbe84c921c141e57469d2f9c (patch)
tree630b2f3c7b5915dfe980e316b0553e673449e0a0
parent177854efc85c0bd321f52fc64c7637b40921d9a5 (diff)
downloadmga-youri-core-0a04025a47ab63c8bbe84c921c141e57469d2f9c.tar
mga-youri-core-0a04025a47ab63c8bbe84c921c141e57469d2f9c.tar.gz
mga-youri-core-0a04025a47ab63c8bbe84c921c141e57469d2f9c.tar.bz2
mga-youri-core-0a04025a47ab63c8bbe84c921c141e57469d2f9c.tar.xz
mga-youri-core-0a04025a47ab63c8bbe84c921c141e57469d2f9c.zip
work around the change in recent perl-URPM versions that do not return the
real filename of the rpm, it breaks SVN.pm checks in a 2009.1 system
-rw-r--r--lib/Youri/Package/URPM.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Package/URPM.pm b/lib/Youri/Package/URPM.pm
index d2b2360..ad3a265 100644
--- a/lib/Youri/Package/URPM.pm
+++ b/lib/Youri/Package/URPM.pm
@@ -128,7 +128,7 @@ sub get_file_name {
my ($self) = @_;
croak "Not a class method" unless ref $self;
- return $self->{_header}->filename();
+ return $self->{_file} || die "_file is not defined in header-only objects!\n";
}
sub get_arch {