Lines Matching defs:cfg

64 import pkg.config                       as cfg
174 self.cfg = None
302 txt = self.cfg.get_policy_str(imageconfig.SIGNATURE_POLICY)
303 names = self.cfg.get_property("property",
562 self.cfg = imageconfig.ImageConfig(self.__cfgpathname,
567 self.cfg = imageconfig.BlendedConfig(self.cfg,
571 self.cfg.get_policy("use-system-repo"))
615 for pub in self.cfg.publishers.values():
616 # self.cfg.publishers is used because gen_publishers
646 for pub in self.cfg.publishers.values():
647 # self.cfg.publishers is used because gen_publishers
690 self.cfg.write()
833 self.version = int(self.cfg.get_property("image",
835 except (cfg.PropertyConfigError, ValueError):
858 self.cfg.set_property("image", "version", self.version)
947 if isinstance(self.cfg, imageconfig.ImageConfig):
948 self.cfg = imageconfig.BlendedConfig(self.cfg,
952 self.cfg.get_policy("use-system-repo"))
956 for p in self.cfg.modified_pubs:
964 for p in self.cfg.removed_pubs:
979 self.cfg.write_sys_cfg()
1061 self.cfg.variants["variant.opensolaris.zone"] = \
1064 self.cfg.variants["variant.opensolaris.zone"] = \
1067 self.cfg.variants["variant.arch"] = \
1072 self.cfg.variants.update(variants)
1073 self.cfg.facets.update(facets)
1092 self.cfg.set_property("property", "publisher-search-order",
1123 return self.cfg.variants["variant.opensolaris.zone"] == \
1127 return self.cfg.variants["variant.arch"]
1229 if not self.cfg:
1245 img_pub = self.cfg.publishers[pfx]
1265 for p in self.cfg.publishers.values()
1310 pubs = self.cfg.get_property("property",
1377 self.cfg.remove_publisher(pub.prefix)
1397 names = self.cfg.get_property("property",
1440 self.cfg.change_publisher_search_order(being_moved, staying_put,
1449 self.cfg.change_publisher_search_order(being_moved, staying_put,
1476 self.transport.cfg.pkg_pub_map = self.__alt_pkg_pub_map
1477 self.transport.cfg.alt_pubs = self.__alt_pubs
1478 self.transport.cfg.reset_caches()
1492 ipub = self.cfg.publishers[pub.prefix]
1508 self.transport.cfg.pkg_pub_map = None
1509 self.transport.cfg.alt_pubs = None
1510 self.transport.cfg.reset_caches()
1541 if not self.cfg.allowed_to_move(pub):
1554 if self.cfg.allowed_to_move(p):
1559 self.cfg.change_publisher_search_order(pub.prefix,
1564 self.cfg.set_property("property", prop_name,
1571 self.cfg.set_properties(properties)
1575 return self.cfg.get_property("property", prop_name)
1579 self.cfg.get_property("property", prop_name)
1581 except cfg.ConfigError:
1586 self.cfg.remove_property("property", prop_name)
1591 self.cfg.add_property_value("property", prop_name,
1597 self.cfg.remove_property_value("property", prop_name,
1618 if not self.cfg:
1620 return list(self.cfg.get_index()["property"].keys())
1664 self.cfg.remove_publisher(pub.prefix)
1670 self.cfg.remove_publisher(pub.prefix)
1686 for p in self.cfg.publishers.values():
1707 self.cfg.publishers[pub.prefix] = pub
1790 self.cfg.get_policy(
1806 if not mediator or mediator not in self.cfg.mediators:
1810 cfg_med_version = self.cfg.mediators[mediator].get(
1812 cfg_med_impl = self.cfg.mediators[mediator].get(
1826 vardrate_excludes = [self.cfg.variants.allow_action]
1827 dehydrate = self.cfg.get_property("property", "dehydrated")
1889 self.cfg.variants.update(new_variants)
1891 self.cfg.facets = new_facets
1893 self.cfg.mediators = new_mediators
2011 excludes = [self.cfg.variants.allow_action,
2012 self.cfg.facets.allow_action]
2150 cfgpubs = set(self.cfg.publishers.keys())
2429 new_vars = self.cfg.variants.copy()
2433 var_call = self.cfg.variants.allow_action
2437 fac_call = self.cfg.facets.allow_action
2443 return self.cfg.variants.copy()
2447 return self.cfg.facets.copy()
3458 if not self.cfg.get_policy(imageconfig.FLUSH_CONTENT_CACHE):
3954 cur = set(six.iteritems(self.cfg.variants))
3983 old_mediators = self.cfg.mediators