Shawn Walker wrote: > Michal Pryc wrote: >> Hello Brock, >> I am rewriting few functions on the package manager side and I found a >> little problem. >> >> Basically as part of fix for: >> http://defect.opensolaris.org/bz/show_bug.cgi?id=4628 > > You never responded to my comments in that bug or to Danek's adequately > to my knowledge on the list. If the user have the GUI with two repositories: $ pkg authority
AUTHORITY URL testrepo http://osol-re.sfbay.sun.com/ opensolaris.org (preferred) http://pkg.opensolaris.org/release/ Which means that some packages are in the testrepo which also are in the opensolaris.org user want to install particular version of let's say SUNWgnome-games using testrepo, then from command line it is possible: $ pfexec pkg install pkg://testrepo/SUNWgnome-games the GUI will show two packages SUNWgnome-games in the testrepo repository and in the opensolaris.org repository. If the user selects the one from the testrepo, then what GUI should do? - install the one from preferred one - It's not a case, since user really didn't want to install this package. - pop up error dialog telling that this package can't be installed as it is in the preferred authority as well, then the API needs to provide mechanism of doing that (here are problems, what happens if selected package is in the testrepo and it is not in opensolaris.org and the testrepo package depends on one which is in both repositories). I am trying to find a way which will be consistent between CLI/GUI. > > Specifically, you still haven't indicated what the real issue is here or > why you need the ability to install from a specific authority when the > package is offered by multiple authorities and one of those authorities > is already preferred. Basically yes. > >> We need to specify from which authority the package will be installed >> if the package have the same name: >> >> Package_A (default) >> Package_A > > Why do you need to do this? The preferred authority is supposed to > determine which Package_A we install. Not a case for the GUI, as user could select the Package_A from the non-default reposiory and we shouldn't think for the user. best Michal _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
