Repositories' priority | |
|
|
Mitglied Posts: 70 Registered: 2008-08-24 | Hi guys,
I noticed that if I set up a local repository as explained in the wiki, I can't override the main repository's packages. upkg seems to handle priority based on the order they're listed in /etc/upkg.conf. It's possible to handle repositories' priority adding an XML attribute for the <repository> tag?
For example:
Code | [In neuem Fenster öffnen] | | <?xml version="1.0" encoding="UTF-8"?>
<local>
<cachedir>/var/cache/upkg</cachedir>
<repositories>
<repository priority="99">http://www.paldo.org/paldo</repository>
<repository priority="5">http://www.paldoworld.org/repo</repository>
<repository priority="1">/home/Paldo/</repository>
</repositories>
<branch>testing</branch>
<arch>x86</arch>
</local> | .............................. Running GNU/Linux Paldo 1.18 (unstable). Rock my box! |
|
|
|
|
|
Re: Repositories' priority | |
|
|
Senior Mitglied Posts: 216 Registered: 2008-07-04 | I really don't think that priorities settings are necessaries other then the ordering on xml, it would make difference, whatsoever and get more complex for no new feature, if we were talking about settings for specific packages such as, ordering your files making my local repository the number one but force VLC to be preferred from the paldo official repository
Code | [In neuem Fenster öffnen] | |
<?xml version="1.0" encoding="UTF-8"?>
<local>
<cachedir>/var/cache/upkg</cachedir>
<repositories>
<repository>/home/Paldo/</repository>
<repository>http://www.paldo.org/paldo</repository>
</repositories>
<priorities>
<package name="vlc">http://www.paldo.org/paldo</package>
</priorities>
<branch>testing</branch>
<arch>x86_64</arch>
</local>
|
* PS.: the problem with linux's package managements are mainly because of dependency problems, and the fact that on opensuse you can set the same priority to zypper repositories ( " 99 ") compounds a problem because it doens't know where to pull the dependency from. The fact that paldo organizes the repositories priorities this way, disapears with that problem from opensuse ( if you have used opensuse 11.1 you might be familiar with the screen that gets in front of you when you try to install something and it keeps asking if you what to do that or not to or if you want to change the package " vendor " as zypper calls the repositories, it's really anoying ) .............................. OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez |
|
|
|
|
|
Re: Repositories' priority | |
|
|
Mitglied Posts: 70 Registered: 2008-08-24 | Well, it would not be so complicate: the repository's list should simply be sorted by priority before checking the package version to install.
Another intresting feature would be to let the use choose which repository to use to install a package which is on multiple repositories (this one is more complex). .............................. Running GNU/Linux Paldo 1.18 (unstable). Rock my box! |
|
|
|
|
|