Channel priorities - what am I doing wrong?

Joachim Schrod jschrod at acm.org
Sat Mar 15 04:07:46 PDT 2008


Hi, another question:

I have a local and a remote channel with roughly the same content.
I'd like to use packages from the local channel, if they are there. To
achieve that, I gave the remote channel a priority of -1. This does
not work.

How can I achieve that aim?


For reference, my test case: Even though xselection is both available
in channels DVD and opensuse (the latter having priority -1), it's
downloaded from opensuse. I would have expected that it's taken
straight from channel DVD, having the higher priority.

-------------------- snip snap ------------------------------

pixel:/data/suse-10.3/smart/packages # smart query --show-channels --show-summary --show-priority xselection
Loading cache...
Updating cache...                           ############################################################ [100%]

xselection-1.6.1-685 at i586 {0} [DVD, opensuse] - Manipulate the XSelection

Saving cache...

pixel:/data/suse-10.3/smart/packages # smart channel --show DVD opensuse
[DVD]
type = yast2
name = SUSE 10.3 DVDs
manual = yes
baseurl = /data/suse-10.3/dvd

[opensuse]
type = yast2
name = openSUSE-10.3-FTP
priority = -1
baseurl = http://download.opensuse.org/distribution/10.3/repo/oss/

pixel:/data/suse-10.3/smart/packages # smart install --explain xselection
Loading cache...
Updating cache...                           ############################################################ [100%]

Computing transaction...

Installing packages (1):
  xselection-1.6.1-685 at i586

10.3kB of package files are needed. 14.9kB will be used.

Confirm changes? (Y/n): 

Fetching packages...                                                                                           
-> http://download.opensuse.org/distribution/10.3/repo/oss/suse/i586/xselection-1.6.1-685.i586.rpm             
xselection-1.6.1-685.i586.rpm               ############################################################ [100%]

                                                                                                               
Committing transaction...
Preparing...                                ############################################################ [  0%]
   1:Installing xselection                  ############################################################ [100%]

Saving cache...

-------------------- snip snap ------------------------------

TIA for any answer,

	Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod				Email: jschrod at acm.org
Roedermark, Germany



More information about the Smart mailing list