SMART doesn't respect channel priority-setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Medium
|
Gustavo Niemeyer |
Bug Description
Imported: http://
Reason: Issue Review
further details: https:/
msg975 (view) Author: ademar Date: 2006-11-21.22:44:35
I had the same issue (mdv2007). I could workaround the problem by setting dvd
priorities to 2 and online repositories to 1, keeping rpm-sys at the default.
But the strange thing is:
- With this setup, upgrades won't work as expected (there will be downgrades of
some packages, to versions found on the DVDs).
- If I set rpm-sys' priority to, let's see... 2 or 3, then I get the original
behavior back (online repositories are prefered instead of the dvd ones).
I have no idea of the logic behind this behavior... hopefuly niemeyer will came
up with a patch :-)
msg801 (view) Author: netmask Date: 2006-10-24.14:27:10
Thanks for the info. We're already checking this issue.
msg796 (view) Author: MaxiPunkt Date: 2006-10-23.13:40:22
Solution b)
Didn't work for me, don't know why, because your proposal sounds logical. But I
don't think that this would be a good solution (if it worked), because you have
to be sure that the DVD is inside and running before you start installing
packages...
Solution a)
I'm not sure about how to set this option you mentioned. Here is what I did:
smart config --set prefer-
I hope like this it's correct. If I do a
smart config --show
I can see the new option. But unfortunately this didn't work for me, either.
Btw. - if I disable the channel "FTP-Main" - SMART will collect the packages
from DVD just fine. So there can't be anything wrong with the setup of the
"DVD"-channel.
msg794 (view) Author: netmask Date: 2006-10-23.12:14:38
IIRC, Smart gives precedence to on-line medias instead of removable ones.
Please, try each of the following and post your feelings:
a) Put both channels on priority 0 and use "-o prefer-
b) Unset the removable flag on the DVD media, and put FTP with lower priority.
If I'm not wrong, both would give you the same results (install from DVD). Try
both solutions, then tell me what are the results.
msg793 (view) Author: MaxiPunkt Date: 2006-10-23.11:41:51
I'm using Mandriva 2007 with smart 0.42
I've added a channel for all packages on the Installation-DVD of Mandriva
I've added some channels from the FTP Mandriva-Mirrors (main, contrib, updates).
The packages on the DVD are same as in "FTP-main", but there are some more
packages on the FTP-mirror.
I want to get sure that the packages on the DVD are the prefered ones - only if
a package is not included on DVD, "FTP-main" should be choosen.
Therefore I lowered the priority of channel "FTP-main" - but smart doesn't
resept this setting, no matter if it was set to -1, -20, -50 or even -100!!
Prirority of channel "DVD" is "0".
The packages are always fetched from the FTP-mirror instead of using the DVD!
Changed in smart: | |
importance: | Undecided → Medium |
assignee: | nobody → niemeyer |