Lines Matching refs:pkgdefs
64 import pkg.client.pkgdefs as pkgdefs
157 assert rv not in [pkgdefs.EXIT_OK, pkgdefs.EXIT_NOP] or e is None
159 assert rv == pkgdefs.EXIT_OK or p_dict is None
1549 return LI_RVTuple(pkgdefs.EXIT_OOPS, e, None)
1559 return LI_RVTuple(pkgdefs.EXIT_DIVERGED, e,
1561 return LI_RVTuple(pkgdefs.EXIT_OK, None, None)
1566 return LI_RVTuple(pkgdefs.EXIT_DIVERGED, e, None)
1568 return LI_RVTuple(pkgdefs.EXIT_OK, None, None)
1576 if rv == pkgdefs.EXIT_DIVERGED:
1594 return LI_RVTuple(pkgdefs.EXIT_OK, None, None)
1597 rv_map = [(set([pkgdefs.EXIT_OK]), pkgdefs.EXIT_OK)]
1616 # the mappings better have included pkgdefs.EXIT_OK
1617 assert pkgdefs.EXIT_OK in rv_mapped
1636 return LI_RVTuple(pkgdefs.EXIT_PARTIAL, err, p_dicts)
1644 (set([pkgdefs.EXIT_OK]), pkgdefs.EXIT_OK),
1645 (set([pkgdefs.EXIT_DIVERGED]), pkgdefs.EXIT_DIVERGED),
1646 (set([pkgdefs.EXIT_OK, pkgdefs.EXIT_DIVERGED]),
1647 pkgdefs.EXIT_DIVERGED),
1657 (set([pkgdefs.EXIT_OK]), pkgdefs.EXIT_OK),
1658 (set([pkgdefs.EXIT_OK, pkgdefs.EXIT_NOP]), pkgdefs.EXIT_OK),
1659 (set([pkgdefs.EXIT_NOP]), pkgdefs.EXIT_NOP),
1883 return LI_RVTuple(pkgdefs.EXIT_OK, None, None)
1893 _pkg_op=pkgdefs.PKG_OP_SYNC,
1912 pkgdefs.EXIT_OK, pkgdefs.EXIT_NOP ]:
1927 if rvtuple.rvt_rv == pkgdefs.EXIT_NOP:
1928 return LI_RVTuple(pkgdefs.EXIT_OK, None, None)
1942 _pkg_op=pkgdefs.PKG_OP_AUDIT_LINKED,
1969 _pkg_op=pkgdefs.PKG_OP_SYNC,
2015 _pkg_op=pkgdefs.PKG_OP_DETACH,
2082 stage=pkgdefs.API_STAGE_DEFAULT
2088 stage=pkgdefs.API_STAGE_DEFAULT):
2139 if pkg_op in [ pkgdefs.PKG_OP_AUDIT_LINKED,
2140 pkgdefs.PKG_OP_PUBCHECK ]:
2166 if stage != pkgdefs.API_STAGE_DEFAULT:
2172 if pkg_op != pkgdefs.PKG_OP_DETACH:
2234 if rvtuple.rvt_rv in [ pkgdefs.EXIT_OK,
2235 pkgdefs.EXIT_NOP ]:
2244 if _expect_plan and rvtuple.rvt_rv == pkgdefs.EXIT_OK:
2388 _pkg_op=pkgdefs.PKG_OP_PUBCHECK,
2410 assert stage in [pkgdefs.API_STAGE_PLAN,
2411 pkgdefs.API_STAGE_PREPARE, pkgdefs.API_STAGE_EXECUTE]
2417 if stage == pkgdefs.API_STAGE_PLAN:
2445 if stage == pkgdefs.API_STAGE_PLAN:
2482 if rvdict[lin].rvt_rv == pkgdefs.EXIT_NOP:
2488 if stage == pkgdefs.API_STAGE_PLAN and \
2489 rvdict[lin].rvt_rv == pkgdefs.EXIT_OK:
2520 if api_op == pkgdefs.API_OP_SYNC:
2521 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2526 elif api_op == pkgdefs.API_OP_INSTALL:
2527 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2528 pkg_op_erecurse = pkgdefs.PKG_OP_INSTALL
2529 elif api_op == pkgdefs.API_OP_CHANGE_FACET:
2530 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2531 pkg_op_erecurse = pkgdefs.PKG_OP_CHANGE_FACET
2532 elif api_op == pkgdefs.API_OP_CHANGE_VARIANT:
2533 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2534 pkg_op_erecurse = pkgdefs.PKG_OP_CHANGE_VARIANT
2535 if api_op == pkgdefs.API_OP_UPDATE:
2536 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2537 pkg_op_erecurse = pkgdefs.PKG_OP_UPDATE
2538 elif api_op == pkgdefs.API_OP_UNINSTALL:
2539 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2540 pkg_op_erecurse = pkgdefs.PKG_OP_UNINSTALL
2542 pkg_op_irecurse = pkgdefs.PKG_OP_SYNC
2576 if op == pkgdefs.PKG_OP_INSTALL:
2581 elif op == pkgdefs.PKG_OP_CHANGE_VARIANT:
2587 elif op == pkgdefs.PKG_OP_CHANGE_FACET:
2593 elif op == pkgdefs.PKG_OP_UNINSTALL:
2601 elif op == pkgdefs.PKG_OP_UPDATE:
2645 for p_dict in self.__api_recurse(pkgdefs.API_STAGE_PLAN,
2652 list(self.__api_recurse(pkgdefs.API_STAGE_PREPARE, progtrack))
2657 list(self.__api_recurse(pkgdefs.API_STAGE_EXECUTE, progtrack))
2902 tmp=False, test=False, stage=pkgdefs.API_STAGE_DEFAULT):
2930 pkgdefs.API_STAGE_DEFAULT, pkgdefs.API_STAGE_PLAN]:
2950 LI_RVTuple(pkgdefs.EXIT_NOP, None, None)
2962 stage=pkgdefs.API_STAGE_DEFAULT,
2985 LI_RVTuple(pkgdefs.EXIT_OK, None, None)
3008 pkgdefs.PKG_OP_SYNC,
3051 pkgdefs.PKG_OP_UPDATE,
3090 pkgdefs.PKG_OP_INSTALL,
3126 pkgdefs.PKG_OP_UNINSTALL,
3160 op = pkgdefs.PKG_OP_CHANGE_VARIANT
3163 op = pkgdefs.PKG_OP_CHANGE_FACET
3200 pkgdefs.PKG_OP_DETACH,
3221 pkgdefs.PKG_OP_PUBCHECK)
3234 pkgdefs.PKG_OP_AUDIT_LINKED,
3258 if _pkg_op == pkgdefs.PKG_OP_AUDIT_LINKED:
3260 elif _pkg_op == pkgdefs.PKG_OP_DETACH:
3262 elif _pkg_op == pkgdefs.PKG_OP_PUBCHECK:
3264 elif _pkg_op == pkgdefs.PKG_OP_SYNC:
3267 elif _pkg_op == pkgdefs.PKG_OP_UPDATE:
3270 elif _pkg_op == pkgdefs.PKG_OP_INSTALL:
3273 elif _pkg_op == pkgdefs.PKG_OP_UNINSTALL:
3276 elif _pkg_op == pkgdefs.PKG_OP_CHANGE_FACET or \
3277 _pkg_op == pkgdefs.PKG_OP_CHANGE_VARIANT:
3334 rv = pkgdefs.EXIT_OOPS
3339 rv not in [pkgdefs.EXIT_OK, pkgdefs.EXIT_NOP]:
3347 if rv == pkgdefs.EXIT_NOP: