Lines Matching refs:pkgdefs
57 import pkg.client.pkgdefs as pkgdefs
1463 if pkgdefs.PKG_STATE_INSTALLED in states:
2065 states.discard(pkgdefs.PKG_STATE_INSTALLED)
2070 states.add(pkgdefs.PKG_STATE_INSTALLED)
2085 if pkgdefs.PKG_STATE_ALT_SOURCE in states:
2087 pkgdefs.PKG_STATE_UPGRADABLE)
2089 pkgdefs.PKG_STATE_ALT_SOURCE)
2091 pkgdefs.PKG_STATE_KNOWN)
2092 elif pkgdefs.PKG_STATE_KNOWN not in states:
2101 if (pkgdefs.PKG_STATE_INSTALLED in states and
2102 pkgdefs.PKG_STATE_UNINSTALLED in states) or (
2103 pkgdefs.PKG_STATE_KNOWN in states and
2104 pkgdefs.PKG_STATE_UNKNOWN in states):
2143 if pkgdefs.PKG_STATE_ALT_SOURCE in states:
2420 return pkgdefs.PKG_STATE_INSTALLED in states
2592 if pkgdefs.PKG_STATE_INSTALLED not in states:
2655 states.append(pkgdefs.PKG_STATE_KNOWN)
2658 states.append(pkgdefs.PKG_STATE_V1)
2662 pkgdefs.PKG_STATE_INSTALLED)
2667 pkgdefs.PKG_STATE_UPGRADABLE)
2678 pkgdefs.PKG_STATE_FROZEN)
2713 pkgdefs.PKG_STATE_OBSOLETE)
2719 pkgdefs.PKG_STATE_RENAMED)
2763 states.discard(pkgdefs.PKG_STATE_KNOWN)
2770 pkgdefs.PKG_STATE_UPGRADABLE)
2773 pkgdefs.PKG_STATE_UPGRADABLE)
2783 pkgdefs.PKG_STATE_FROZEN)
2786 pkgdefs.PKG_STATE_FROZEN)
3668 if st["state"] == pkgdefs.PKG_STATE_INSTALLED:
3682 if st["state"] == pkgdefs.PKG_STATE_INSTALLED:
3882 pkgdefs.API_OP_ATTACH,
3883 pkgdefs.API_OP_DETACH,
3884 pkgdefs.API_OP_SYNC]:
3887 pkgdefs.API_OP_CHANGE_FACET,
3888 pkgdefs.API_OP_CHANGE_VARIANT]:
3890 elif _op == pkgdefs.API_OP_DEHYDRATE:
3892 elif _op == pkgdefs.API_OP_INSTALL:
3894 elif _op ==pkgdefs.API_OP_EXACT_INSTALL:
3896 elif _op in [pkgdefs.API_OP_FIX,
3897 pkgdefs.API_OP_VERIFY]:
3899 elif _op == pkgdefs.API_OP_REHYDRATE:
3901 elif _op == pkgdefs.API_OP_REVERT:
3903 elif _op == pkgdefs.API_OP_SET_MEDIATOR:
3905 elif _op == pkgdefs.API_OP_UNINSTALL:
3907 elif _op == pkgdefs.API_OP_UPDATE:
4191 not pkgdefs.PKG_STATE_UPGRADABLE in img.get_pkg_state(pfmri):
4231 img.make_install_plan(pkgdefs.API_OP_INSTALL, progtrack,