aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {