web/modules/rhn/RHN/DB/ChannelEditor.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 76c72bd7d9f0fe8262d49c2a7b9bb0b2ff27c1f8
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Thu Mar 25 14:21:17 2010 -0400
528170 - fixing issue where cloning a channel with cloned errata would select clones
of the cloned errata to pull into the new channel if they existed, instead of just using
the original clones directly.
diff --git a/web/modules/rhn/RHN/DB/ChannelEditor.pm
b/web/modules/rhn/RHN/DB/ChannelEditor.pm
index 34ac73d..a7db934 100644
--- a/web/modules/rhn/RHN/DB/ChannelEditor.pm
+++ b/web/modules/rhn/RHN/DB/ChannelEditor.pm
@@ -414,7 +414,7 @@ sub errata_migration_provider {
sort { ( ($tcache{$b->{CREATED}} ||= str2time($b->{CREATED})) # order by
timestamp, cached, newest
<=> # first, so the
oldest cloned errata
($tcache{$a->{CREATED}} ||= str2time($a->{CREATED})) ) # is the one used.
If two errata share
- || ( $a->{ADVISORY_NAME} cmp $b->{ADVISORY_NAME} ) } # a
timestamp, order alphabetically
+ || ( $a->{ID} cmp $b->{ID} ) } # a timestamp, order
by id, to get the one created first
grep { exists $_->{RELATIONSHIP} and $_->{RELATIONSHIP} eq
'cloned_from' } # filter out non-cloned errata
(@{$published_owned_errata}, @{$unpublished_owned_errata});
Show replies by date