Greetings,
Our current list of states (as implemented, not as documented in
doc/pkg-states.txt) is:
PKG_STATE_INSTALLED = "installed"
-- Indicates that a package is installed
PKG_STATE_KNOWN = "known"
-- Indicates that a package is known
However, the problem is that these are not combinable. For example, one
of the problem cases I've encountered recently is for packages that are
installed, but no longer present in any of the catalogs the user has
(either due to publisher removal or because the publisher rebuilt their
catalog without the package). Thus, they're really just INSTALLED, but
not INSTALLED|KNOWN.
If these states were bitmasks instead of strings, the storage could be
more compact, and it would be possible to easily check for multiple states.
This could help packaging operations when there are multiple matches, so
that matches that are from publishers that are state&KNOWN could be kept
while those that are simply state&INSTALLED are dropped.
Does this fit into long-term vision for package states or should I be
looking at a new state instead such as KNOWN_INSTALLED?
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss