diff options
Diffstat (limited to 'pm')
-rw-r--r-- | pm/MGATools/rpmsrate.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pm/MGATools/rpmsrate.pm b/pm/MGATools/rpmsrate.pm index 4f66a2d..73ad976 100644 --- a/pm/MGATools/rpmsrate.pm +++ b/pm/MGATools/rpmsrate.pm @@ -90,9 +90,7 @@ sub cleanrpmsrate { any { $rpm =~ /$_/ } @$norpmsrate and next; if (/(.*?)([_-]*[\d._]+)(-.*)?-devel$/ || /^$kernel_like(-[^.]+(?:\.[^.]+){3,6}md[vk])$/) { - if (!$rpms{"$1$3"}) { - $rpms{"$1$3"} = [ $2, $1, $3 ]; - } elsif (URPM::ranges_overlap("== $2", "> $rpms{'$1$3'}")) { + if (!$rpms{"$1$3"} || URPM::ranges_overlap("== $2", "> $rpms{'$1$3'}")) { $rpms{"$1$3"} = [ $2, $1, $3 ]; } if (/^$kernel_like-(\d+\.\d+)(.*)/) { |