John Rice wrote:
Shawn - its to support the Packge Verison Info we discussed before. This was a corner case that we had not come across.

You have an installed package and want to check if its installable or not. We run the plan and it comes back with information on what is

I assume you mean updatable since the package is already installed?

local, what's remote and what the plan can do. In this particular instance, the local and remote versions are different, but the plan and remote versions are the same. So we can tell the user they can install the latest version.

I'm a bit confused. The plan should tell you what version can be installed, you shouldn't need to compare remote_info and local_info at all.

Looking at the code should we also be checking the version, in addtion to the build_release and branch, to establish what the user can and cannot upgrade to? If that's the case then I will take this bit out of the current webrev, and spin a new one for changes in __after_get_info().

The plan is what determines what the user can and cannot upgrade to.

--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to