Mageia Bugzilla – Attachment 6242 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]
one more fix :-(
15350b.diff (text/plain), 493 bytes, created by
Thierry Vignaud
on 2015-04-12 05:14:04 CEST
(
hide
)
Description:
one more fix :-(
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-04-12 05:14:04 CEST
Size:
493 bytes
patch
obsolete
>diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm >index fca5b6c..4d12a7d 100644 >--- a/perl-install/install/pkgs.pm >+++ b/perl-install/install/pkgs.pm >@@ -129,7 +129,7 @@ sub packagesProviding { > sub packageByName { > my ($packages, $name) = @_; > >- my @l = grep { $_->name eq $name } packagesProviding($packages, $name); >+ my @l = sort { $b->id <=> $a->id } grep { $_->name eq $name } packagesProviding($packages, $name); > > my $best; > foreach (@l) {
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index fca5b6c..4d12a7d 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -129,7 +129,7 @@ sub packagesProviding { sub packageByName { my ($packages, $name) = @_; - my @l = grep { $_->name eq $name } packagesProviding($packages, $name); + my @l = sort { $b->id <=> $a->id } grep { $_->name eq $name } packagesProviding($packages, $name); my $best; foreach (@l) {
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