Description of problem: When only cdrom are listed as media, if you open MageiaUpdate, a popup come and ask if it can acces to the api, then we get the list of mirror. As a result it adds only updates media and not the core too. This should not happens (cf qa bugs) Reproducible: Steps to Reproduce:
could it be in the lines add_distrib_update_media "only_updates" set 0 instead of 1 ? http://gitweb.mageia.org/software/rpmdrake/tree/Rpmdrake/edit_urpm_sources.pm
just tried, looks not that
Found it, it's here: http://gitweb.mageia.org/software/rpmdrake/tree/Rpmdrake/pkg.pm#n289 changing "only_updates => 1" to "only_updates => 0" make it to add all source. Maybe something there is also a little issue as I never saw "You have no configured update media. MageiaUpdate cannot operate without any update media." Ah and I forget to say that this also happen when no media are present. (so comment 0 was a bit wrong)
Keywords: (none) => PATCH
Feel free to commit this change in git
I have no access ;)
commit ac8c6f381131034ea0dbf3ac26f392cbe1cd550d Author: Rémi Verschelde <remi@...> Date: Sat Feb 14 15:25:49 2015 +0100 MageiaUpdate: add all mirrors instead of only updates mirrors when no updates mirrors are defined (mga#12472) Fix by Manuel Hiebel. --- Commit Link: http://gitweb.mageia.org/software/rpmdrake/commit/?id=ac8c6f381131034ea0dbf3ac26f392cbe1cd550d
On a second thought I could have probably just pushed the patch without releasing a new version so quickly, sorry about that. I'll think twice next time :)
CC: (none) => remi
commit 869ab3f21ef71028b557b64a3357cb92e60a9a9b Author: Angelo Naselli <anaselli@...> Date: Sat Feb 14 19:25:14 2015 +0100 From rpmdrake - Rémi Verschelde - MageiaUpdate: add all mirrors instead of only updates mirrors when no updates mirrors are defined (mga#12472) --- Commit Link: http://gitweb.mageia.org/software/adminpanel/commit/?id=869ab3f21ef71028b557b64a3357cb92e60a9a9b
I am not sure to really understand "description of problem of this bug". I have rpmdrake-6.15-1.mga5 installed. If I execute mgaupdate from commandline under a non privilege user I get the pop to require root access. But when my list of update media are empty mgaupdate doesn't find update and didn't ask to add new media source. When I go throw MCC I need to open "configure source media" (approximately I use FR localization) and then click add to get a popup to ask if I want to contact mirror to get a list of mirrors. What it would be better is to get this popup when you try to update and no update mirror are configured. By default, there are only cdrom media configured. So it would be useful to get this popup to add automatically update mirror (and other mirrors as mentioned in previous posts).
CC: (none) => stephane_oss
Just to link Bug #15048 with my comment 9.
not related to this bug which now fixed
Status: NEW => RESOLVEDResolution: (none) => FIXED