aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Upload/Check
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-09-01 18:20:17 +0000
committerFlorent Villard <warly@mandriva.com>2006-09-01 18:20:17 +0000
commit936e4f3bc16c7795c72366b1f447024f4fd9ceb6 (patch)
tree3e3266202db06278820b61e3596b548c00d090d0 /lib/Youri/Upload/Check
parentab953b7c5729c09e2e04e82dc029c00178333e97 (diff)
downloadmga-youri-core-936e4f3bc16c7795c72366b1f447024f4fd9ceb6.tar
mga-youri-core-936e4f3bc16c7795c72366b1f447024f4fd9ceb6.tar.gz
mga-youri-core-936e4f3bc16c7795c72366b1f447024f4fd9ceb6.tar.bz2
mga-youri-core-936e4f3bc16c7795c72366b1f447024f4fd9ceb6.tar.xz
mga-youri-core-936e4f3bc16c7795c72366b1f447024f4fd9ceb6.zip
fix debug section assignment; use srpm name for version check
Diffstat (limited to 'lib/Youri/Upload/Check')
-rw-r--r--lib/Youri/Upload/Check/Version.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Upload/Check/Version.pm b/lib/Youri/Upload/Check/Version.pm
index 42dfe41..8042e9f 100644
--- a/lib/Youri/Upload/Check/Version.pm
+++ b/lib/Youri/Upload/Check/Version.pm
@@ -35,7 +35,7 @@ sub run {
my $section = $repository->_get_section($package, $target, $define);
return 1 if $section =~ /$self->{_authorized_sections}/;
- my $name = $package->get_name;
+ my $name = $package->get_canonical_name;
return 1 if $name =~ /$self->{_authorized_packages}/;
my @revisions = $repository->get_revisions($package, $target, $define, sub { $package->get_version ne $_[0]->get_version });
if (@revisions) {