Searched refs:img (Results 1 - 25 of 40) sorted by relevance

12

/pkg/src/tests/cli/
H A Dt_lock.py64 img = api_obj.img
67 img.lock()
68 lfpath = os.path.join(img.imgdir, "lock")
73 self.assertRaises(nrlock.NRLockException, img.lock)
86 img.unlock()
139 img = api_obj.img
142 img.lock()
143 lfpath = os.path.join(img
[all...]
H A Dt_pkg_image_create.py159 img = self.get_img_api_obj().img
160 cert_path = os.path.join(img.imgdir, "ssl", "cert.file")
175 img = image.Image(img_path, should_exist=True,
177 pub = img.get_publisher(prefix=prefix)
414 state_path = self.get_img_api_obj().img._statedir
472 img_path = os.path.join(self.test_root, "img")
H A Dt_pkg_modified.py50 mfpath = os.path.join(api_inst.img.imgdir, "modified")
63 mfpath = os.path.join(api_inst.img.imgdir, "modified")
H A Dt_fix.py204 index_dir = self.get_img_api_obj().img.index_dir
287 img = self.get_img_api_obj().img
288 shutil.rmtree(os.path.join(img.imgdir, "license"))
H A Dt_pkg_search.py465 img = self.get_img_api_obj().img
468 for path, readonly, pub, layout in img.get_cachedirs()
586 index_dir = self.get_img_api_obj().img.index_dir
693 img = self.get_img_api_obj().img
694 istate_dir = os.path.join(img._statedir, "installed")
H A Dt_pkg_history.py245 hist_path = self.get_img_api_obj().img.history.path
256 hist_path = self.get_img_api_obj().img.history.path
336 hist_path = self.get_img_api_obj().img.history.path
H A Dt_change_facet.py175 cache_dir = os.path.join(self.get_img_api_obj().img.imgdir,
187 cache_dir = os.path.join(self.get_img_api_obj().img.imgdir,
H A Dt_change_variant.py281 ic = self.get_img_api_obj().img.cfg
/pkg/src/modules/client/
H A Dbootenv.py66 def __init__(self, img, progress_tracker=None):
72 self.img = img
80 self.root = self.img.get_root()
93 self.img.history.create_snapshot()
100 if not self.img:
104 if self.root != self.img.root:
112 self.img.history.restore_snapshot()
114 self.img.history.discard_snapshot()
121 self.img
[all...]
H A Dimage.py4151 img = self
4153 if self.__cmddir and not img.is_liveroot():
4187 img = newimg
4189 pfmri = img.get_version_installed(img.strtofmri("package/pkg"))
4191 not pkgdefs.PKG_STATE_UPGRADABLE in img.get_pkg_state(pfmri):
4197 inc_fmri = img.get_version_installed(img.strtofmri(
4206 cat = img.get_catalog(img
[all...]
/pkg/src/modules/actions/
H A Dlicense.py131 def verify(self, img, pfmri, **args):
140 path = os.path.join(img.get_license_dir(pfmri),
192 def get_text(self, img, pfmri, alt_pub=None):
202 path = self.get_local_path(img, pfmri)
221 alt_pub = img.get_publisher(pfmri.publisher)
223 return img.transport.get_content(alt_pub, hash_attr_val,
226 img.cleanup_downloads()
228 def get_local_path(self, img, pfmri):
232 if img.version <= 3:
235 path = os.path.join(img
[all...]
H A Dhardlink.py101 def verify(self, img, **args):
111 self.verify_fsobj_common(img, stat.S_IFREG)
117 path = self.get_installed_path(img.get_root())
119 (img.get_root(), target)))
H A Dgroup.py135 img = pkgplan.image
136 img._groups.add(self)
138 img._groupsbyname[self.attrs["groupname"]] = \
151 def verify(self, img, **args):
164 gr = GroupFile(img)
H A Dlink.py77 def verify(self, img, **args):
83 path = self.get_installed_path(img.get_root())
86 self.verify_fsobj_common(img, stat.S_IFLNK)
H A Duser.py197 img = pkgplan.image
198 img._users.add(self)
200 img._usersbyname[self.attrs["username"]] = \
221 def verify(self, img, **args):
238 pw, gr, ftp, cur_attrs = self.readstate(img, username)
H A Dlegacy.py137 def verify(self, img, **args):
146 pkgdir = os.path.join(img.get_root(), "var/sadm/pkg",
H A Ddriver.py618 def __gen_read_binding_file(img, path, minfields=None, maxfields=None,
622 img.get_root(), path)))
656 def __get_image_data(cls, img, name, collect_errs = False):
668 for fields in DriverAction.__gen_read_binding_file(img,
701 for fields in DriverAction.__gen_read_binding_file(img,
715 for fields in DriverAction.__gen_read_binding_file(img,
733 for fields in DriverAction.__gen_read_binding_file(img,
757 img.get_root(), "etc/security/device_policy")))
796 img.get_root(), "etc/security/extra_privs")))
821 def verify(self, img, **arg
[all...]
H A Ddirectory.py210 def verify(self, img, **args):
216 self.verify_fsobj_common(img, stat.S_IFDIR)
H A Dgeneric.py778 def verify(self, img, **args):
940 def verify_fsobj_common(self, img, ftype):
970 owner = img.get_user_by_name(owner)
978 group = img.get_group_by_name(group)
984 path = self.get_installed_path(img.get_root())
1021 found_name=img.get_name_by_uid(lstat.st_uid,
1030 found_name=img.get_name_by_gid(lstat.st_gid,
H A Dfile.py342 def verify(self, img, **args):
354 path = self.get_installed_path(img.get_root())
357 self.verify_fsobj_common(img, stat.S_IFREG)
/pkg/src/modules/portable/
H A Dos_windows.py160 img = image.Image(os.path.dirname(path),
165 trashdir = os.path.join(img.imgdir, trashname)
169 cached_image_info.append((img.get_root(), trashdir))
/pkg/src/modules/
H A Dapi_common.py42 def __init__(self, pfmri, act, img=None, text=None, alt_pub=None):
46 self.__img = img
/pkg/src/modules/client/linkedimage/
H A Dcommon.py443 def __init__(self, img):
447 self.__img = img
3410 def get_pubs(img):
3426 for p in img.get_sorted_publishers(inc_disabled=False)
3429 def get_packages(img, pd=None):
3430 """Figure out the current (or planned) list of packages in img."""
3432 ppkgs = set(img.get_catalog(img.IMG_CATALOG_INSTALLED).fmris())
3450 def get_inheritable_facets(img, pd=None):
3458 ppkgs = get_packages(img, p
[all...]
/pkg/src/
H A Dclient.py3901 img.add_property_value(propname, propvalue)
3923 img.remove_property_value(propname, propvalue)
3968 img.set_properties(props)
3994 img.delete_property(p)
4016 if not img.has_property(p):
4024 pargs = sorted(list(img.properties()))
4032 msg(fmt.format(p, img.get_property(p)))
4658 global img
4667 img = _api_inst.img
5089 img = None variable
[all...]
/pkg/src/tests/api/
H A Dt_pkg_api_install.py1199 img = api_obj.img
1202 for act, errors, warnings, pinfo in img.verify(pfmri, progtrack,

Completed in 83 milliseconds

12