[issue231] SMART doesn't respect channel priority-setting

snowcrash+smart schneecrash+smart at gmail.com
Tue Nov 21 15:39:08 PST 2006


> 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 was having similar issues with the default-created rpm-sys'
priority, and cycling upgrade/downgrades.

after a chat here on list, i DISABLED the auto-creation of the rpm-sys
by commenting out in:

	$EDIT /usr/lib/smart/distro.py

		#    sysconf.set(("channels", "rpm-sys"),
		#                {"alias": "rpm-sys",
		#                 "type": "rpm-sys",
		#                 "name": "RPM System"})

then removing the auto-created channel with:

	smart channel --yes --remove rpm-sys

and, finally, setting up my own rpm-sys channel with:

	smart channel --yes --add myDB \
	type=rpm-sys \
	name="RPM System" \
	priority=12 \
	disabled=no

where, of course, the priority is whatever you wish/need.

since then -- no more upgrade/downgrade weirdness.

hth.



More information about the Smart mailing list