Use of priorities

Grant McWilliams grantmasterflash at gmail.com
Fri Sep 11 07:55:35 PDT 2009


On Mon, Aug 24, 2009 at 8:12 PM, Edward Diener <
eldlistmailingz at tropicsoft.com> wrote:

> I do not understand the use of priorities for channels in Smart. I thought
> I did understand but evidently the priority number works differently than
> the way I thought it would or I just am not using it in the right way.
>
> I wanted a priority system which does not show updates to a package if the
> priority of the channel which has the update is lower than the priority of
> the channel which has supplied the current version of a package. This would
> keep me from updating a package from a channel of a lower priority, thus
> possibly breaking a distribution. When I tried this in Smart 1.2 I notice
> that Smart will still list updates to packages from channels that have lower
> priorities than the channel from where the previous version of the package
> came, when one chooses to hide any package that is not an update. This
> puzzles me since I thought the priority, as it related to channels, was
> meant to prevent this situation.
>
> Does priority, therefore, only apply to installations of a new package and,
> if so, how does that work ? How can I use Smart so that it does not list an
> update a package with a later release over another channel where the package
> was previously installed or updated, when I do not want to use the first
> channel to override packages from the second channel ? I think this is a
> very common occurence: one has a set of base channels, and then one has a
> 3rd party channel, and one does not want the particular 3rd party channel to
> be used to update packages in one of the base channels, but only to supply
> new packages and updates of thoe packages.
>

I don't know for sure about the packages in updates showing up or not but I
know that I use priorities in a project and what I've found out is you need
to play with those numbers. Giving your base repo a priority of 2 and the
third party repo a priority of 1 won't do. You need to boost the priority
higher until it works. I think it calculates a lot of things and the channel
priority is only one of them. By putting my base repo at 10 it will choose
the package there over any other all the time. I don't use the update gui so
I don't know if the other updates show up or not.

Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use
Windows."
Now they have two problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20090911/7a5aa462/attachment-0002.htm>


More information about the Smart mailing list