summaryrefslogtreecommitdiffstats
path: root/urpm/xml_info_pkg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/xml_info_pkg.pm')
-rw-r--r--urpm/xml_info_pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/xml_info_pkg.pm b/urpm/xml_info_pkg.pm
index a8004987..94e96d07 100644
--- a/urpm/xml_info_pkg.pm
+++ b/urpm/xml_info_pkg.pm
@@ -41,7 +41,7 @@ sub version { exists $_[0]{pkg} ? $_[0]{pkg}->version : $_[0]{fn} =~ $fullname
sub release { exists $_[0]{pkg} ? $_[0]{pkg}->release : $_[0]{fn} =~ $fullname_re && $3 }
sub arch { exists $_[0]{pkg} ? $_[0]{pkg}->arch : $_[0]{fn} =~ $fullname_re && $4 }
-sub fullname { wantarray ? $_[0]{pkg}->fullname : $_[0]{fn} }
+sub fullname { wantarray() ? $_[0]{pkg}->fullname : $_[0]{fn} }
sub filename { $_[0]{fn} . '.rpm' }