Mageia Bugzilla – Attachment 6239 Details for
Bug 15350
Upgrade failed mga4 to mga5 when adding online media to DVD - 195 transactions failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch which may help
0001-Make-package-selection-deterministic-when-there-are-.patch (text/plain), 944 bytes, created by
Pascal Terjan
on 2015-04-12 02:40:31 CEST
(
hide
)
Description:
Patch which may help
Filename:
MIME Type:
Creator:
Pascal Terjan
Created:
2015-04-12 02:40:31 CEST
Size:
944 bytes
patch
obsolete
>From c3a4013535b48f3a3ab44080e3164f43ef15c5fc Mon Sep 17 00:00:00 2001 >From: Pascal Terjan <pterjan@gmail.com> >Date: Sun, 12 Apr 2015 00:38:30 +0000 >Subject: [PATCH] Make package selection deterministic when there are > duplicates > >--- > URPM/Resolve.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm >index 2f580ae..419f88f 100644 >--- a/URPM/Resolve.pm >+++ b/URPM/Resolve.pm >@@ -336,7 +336,8 @@ sub _find_required_package__sort { > my ($best, @other) = sort { > $a->[1] <=> $b->[1] #- we want the lowest (ie preferred arch) > || $b->[2] <=> $a->[2] #- and the higher score >- || $a->[0]->fullname cmp $b->[0]->fullname; #- then by name >+ || $a->[0]->fullname cmp $b->[0]->fullname #- then by name >+ || $a->[0]->id <=> $b->[0]->id; #- then by id in case we have duplicate names > } map { > my $score = 0; > $score += 2 if $_->flag_requested; >-- >2.3.2 >
From c3a4013535b48f3a3ab44080e3164f43ef15c5fc Mon Sep 17 00:00:00 2001 From: Pascal Terjan <pterjan@gmail.com> Date: Sun, 12 Apr 2015 00:38:30 +0000 Subject: [PATCH] Make package selection deterministic when there are duplicates --- URPM/Resolve.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 2f580ae..419f88f 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -336,7 +336,8 @@ sub _find_required_package__sort { my ($best, @other) = sort { $a->[1] <=> $b->[1] #- we want the lowest (ie preferred arch) || $b->[2] <=> $a->[2] #- and the higher score - || $a->[0]->fullname cmp $b->[0]->fullname; #- then by name + || $a->[0]->fullname cmp $b->[0]->fullname #- then by name + || $a->[0]->id <=> $b->[0]->id; #- then by id in case we have duplicate names } map { my $score = 0; $score += 2 if $_->flag_requested; -- 2.3.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15350
:
5943
|
6020
|
6030
|
6056
|
6072
|
6073
|
6074
|
6129
|
6130
|
6158
|
6174
|
6212
|
6213
|
6239
|
6240
|
6241
|
6242