diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-19 15:12:35 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-19 15:12:35 +0000 |
commit | 0066a019769dbe07d4b4ef716b5bd4f4489ae133 (patch) | |
tree | 1f98de8ee2d35ec3f7186041d6418786a800b644 | |
parent | 16bf07533c7575c7294f20f8ac39324c4b200993 (diff) | |
download | mga-youri-core-0066a019769dbe07d4b4ef716b5bd4f4489ae133.tar mga-youri-core-0066a019769dbe07d4b4ef716b5bd4f4489ae133.tar.gz mga-youri-core-0066a019769dbe07d4b4ef716b5bd4f4489ae133.tar.bz2 mga-youri-core-0066a019769dbe07d4b4ef716b5bd4f4489ae133.tar.xz mga-youri-core-0066a019769dbe07d4b4ef716b5bd4f4489ae133.zip |
new range check function
-rw-r--r-- | lib/Youri/Package.pm | 2 | ||||
-rw-r--r-- | lib/Youri/Package/URPM.pm | 2 | ||||
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Youri/Package.pm b/lib/Youri/Package.pm index 1571642..c8a6bca 100644 --- a/lib/Youri/Package.pm +++ b/lib/Youri/Package.pm @@ -323,7 +323,7 @@ sub compare_ranges { my ($self, $range1, $range2) = @_; carp "Deprecated method, use are_range_compatible now"; - return $self->are_ranges_compatible($range1, $range2); + return $self->check_ranges_compatibility($range1, $range2); } sub get_revision_name { diff --git a/lib/Youri/Package/URPM.pm b/lib/Youri/Package/URPM.pm index 0691d83..667284c 100644 --- a/lib/Youri/Package/URPM.pm +++ b/lib/Youri/Package/URPM.pm @@ -359,7 +359,7 @@ sub satisfy_range { my ($self, $range) = @_; croak "Not a class method" unless ref $self; - return $self->check_range_compatibility($self->get_revision(), $range); + return $self->check_ranges_compatibility($self->get_revision(), $range); } sub sign { diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index 076c573..742929e 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -314,7 +314,7 @@ sub get_upload_newer_revisions { s/^\@\d+://; return if ! /^$pattern/; print "Find $_\n"; - push @packages, $File::Find::name if $package->compare_ranges("== $name", "< $_") + push @packages, $File::Find::name if $package->check_ranges_compatibility("== $name", "< $_") }, $path); } } |