Hillel Lubman wrote: > On 23/11/2009 13:56, Shawn Walker wrote: >> Hillel Lubman wrote: >>> Will it associate already installed packages with new preferred >>> repository? I did something like this once, and was left with a repo >>> where all packages were shown as not installed (while actual packages >>> were already in the system), so I had to rollback to the previous >>> boot environment. >>> Thanks, >> >> No, they will continue to be associated with the 'dev' publisher since >> that is where they were installed from. >> >> The CLI has no issue with this case, so I assume that the GUI will >> also include a fix for that problem as well. >> >> Cheers, > > Thanks. I guess the URI should be used as a unique key to identify the > repository, and not the alias which can change. So I'd rather wait for > the fix (since changing the publisher still will not help to use the GUI > for dev repo, as all packages will be shown as not installed).
While the URI uniquely identifies the repository, it does not uniquely identify the publisher. A publisher and a repository are not the same thing. A repository is a location where package data is stored. A publisher is the identity of the entity providing packages. In other words, if the 'opensolaris.org' publisher's repository moves from pkg.opensolaris.org/dev -> pkg.dev.opensolaris.org (as a hypothetical example), that has no bearing on the publisher's identity. To further clarify, 'opensolaris.org' is the prefix (name) of the publisher, not an alias. This is explained in the pkg(5) man page. Cheers, -- Shawn Walker
