Mageia Bugzilla – Attachment 13615 Details for
Bug 29830
drakrpm autoselects dependencies from a disabled repo (i.e backports), and install them.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix to not use disabled backport media
stop_enabling_backport.diff (text/plain), 862 bytes, created by
Nicolas Pomarède
on 2023-01-04 11:31:52 CET
(
hide
)
Description:
fix to not use disabled backport media
Filename:
MIME Type:
Creator:
Nicolas Pomarède
Created:
2023-01-04 11:31:52 CET
Size:
862 bytes
patch
obsolete
>--- /tmp/open_db.pm_orig 2023-01-04 11:21:34.194646593 +0100 >+++ /tmp/open_db.pm 2023-01-04 11:21:12.449683668 +0100 >@@ -150,7 +150,10 @@ > my $urpm = fast_open_urpmi_db(); > my $media = ref $::rpmdrake_options{media} ? join(',', @{$::rpmdrake_options{media}}) : ''; > >- my $searchmedia = $urpmi_options{update} ? undef : join(',', get_inactive_backport_media($urpm)); >+ # 2023/01/04 : stop using disabled backport media in case of update >+ # my $searchmedia = $urpmi_options{update} ? undef : join(',', get_inactive_backport_media($urpm)); >+ undef $searchmedia; >+ > $urpm->{lock} = urpm::lock::urpmi_db($urpm, undef, wait => $urpm->{options}{wait_lock}) if !$::env; > my $previous = $::rpmdrake_options{'previous-priority-upgrade'}; > urpm::select::set_priority_upgrade_option($urpm, (ref $previous ? join(',', @$previous) : ()));
--- /tmp/open_db.pm_orig 2023-01-04 11:21:34.194646593 +0100 +++ /tmp/open_db.pm 2023-01-04 11:21:12.449683668 +0100 @@ -150,7 +150,10 @@ my $urpm = fast_open_urpmi_db(); my $media = ref $::rpmdrake_options{media} ? join(',', @{$::rpmdrake_options{media}}) : ''; - my $searchmedia = $urpmi_options{update} ? undef : join(',', get_inactive_backport_media($urpm)); + # 2023/01/04 : stop using disabled backport media in case of update + # my $searchmedia = $urpmi_options{update} ? undef : join(',', get_inactive_backport_media($urpm)); + undef $searchmedia; + $urpm->{lock} = urpm::lock::urpmi_db($urpm, undef, wait => $urpm->{options}{wait_lock}) if !$::env; my $previous = $::rpmdrake_options{'previous-priority-upgrade'}; urpm::select::set_priority_upgrade_option($urpm, (ref $previous ? join(',', @$previous) : ()));
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29830
:
13255
|
13256
|
13257
|
13258
| 13615