Searched refs:root (Results 1 - 25 of 48) sorted by relevance

12

/pkg/src/modules/
H A Daltroot.py28 Generic interfaces for manipulating files in an alternate root. There
30 that path is contained within "root", then those operations will not affect
31 any files living outside of "root". These routines mainly protect us when
73 def ar_open(root, path, flags,
78 'root' is a directory that path must reside in.
80 'path' is a path that is interpreted relative to 'root'. i.e., 'root'
82 would cause an access to be redirected outside of 'root'. If this
93 assert os.path.isabs(root)
104 # we're going to update root an
[all...]
H A Dp5p.py465 ti.uname = "root"
466 ti.gname = "root"
591 def __add_publisher_files(self, root, file_dir, hashes, fpath=None,
598 self.add(root, arcname=file_dir)
606 self.add(root, arcname=hash_dir)
652 # Throughout this function, the archive root directory is used
657 root = os.path.dirname(self.__arc_name)
662 self.add(root, arcname=d)
672 self.add(root, arcname=man_dir)
715 self.__add_publisher_files(root, file_di
[all...]
/pkg/src/
H A Dpydates36 matchfn = matchmod.match(repo.root, os.getcwd(), patterns=["re:src/modules/.*\.py$"])
60 os.stat(os.path.join(repo.root, f)).st_mtime
85 os.stat(os.path.join(repo.root, f)).st_mtime
H A Ddepot-config.py166 def _get_publishers(root):
167 """Given a repository root, return the list of available publishers,
173 repository = sr.Repository(root=root, read_only=True)
542 # (publisher prefix, repository root dir, repository prefix,
561 # The writable root must exist and must be
628 """Determine whether the repository root, and supplied prefixes are
637 for root, prefix, writable_root in repo_info:
643 if root in roots:
646 root))
[all...]
H A DMakefile45 # with the pkg modules in the root filesystem).
100 PATH=$$(hg root)/proto/root_$$(uname -p)/usr/bin:$$PATH
H A Ddepot.py155 [-t socket_timeout] [--cfg] [--content-root]
157 [--image-root dir] [--log-access dest] [--log-errors dest]
160 [--sort-file-max-size size] [--writable-root dir]
182 --content-root The file system path to the directory containing the
195 --image-root The path to the image whose file information will be
238 --writable-root The path to a directory to which the program has write
247 PKG_DEPOT_CONTENT Used as default content_root if --content-root
294 "content-root=", "debug=", "disable-ops=", "exit-ready",
295 "help", "image-root=", "log-access=", "log-errors=",
299 "ssl-key-file=", "sort-file-max-size=", "writable-root
[all...]
H A Dsetup.py593 for root, dirs, files in os.walk(pwd):
596 args += [os.path.join(root, f)]
731 self.root = root_dir
813 elif self.root:
814 dir = change_root(self.root, dir)
1424 All paths should have a common manpath root. In particular, pages
/pkg/src/modules/client/linkedimage/
H A Dzone.py198 path = self.__img.root
246 zdict = _list_zones(self.__img.root,
273 def init_root(self, root):
287 # always execute with "/" as their root. so if the current
289 # root.
290 root = self.__img.root.rstrip(os.sep) + os.sep
291 return (os.sep, root)
380 # relative to that zone's root).
443 def _list_zones(root, path_transfor
[all...]
H A Dsystem.py61 def init_root(self, root):
H A Dcommon.py234 def init_root(self, root):
244 operating on an image in an alternate root then return an
490 root location of the image. (The only time we change the root
495 assert self.__img.root, \
496 "root = {0}".format(str(self.__img.root))
504 # figure out the new root image path
505 root = self.__img.root
[all...]
/pkg/src/modules/file_layout/
H A Dfile_manager.py100 root which cannot be accounted for."""
117 def __init__(self, root, readonly, layouts=None):
120 The "root" parameter is a path to the directory to manage.
125 if not root:
126 raise ValueError("root must not be none")
127 self.root = root
153 cur_full_path = os.path.join(self.root, cur_path)
339 cur_full_path = os.path.join(self.root, cur_path)
357 for dirpath, dirnames, filenames in os.walk(self.root)
[all...]
/pkg/src/modules/server/
H A Drepository.py385 read_only=False, root=None,
411 # Set before root, since it's possible to have the
412 # file_root in an entirely different location. The root
419 self.__set_root(root)
422 # cache root, index_root, etc. But this must be set after all
465 if not self.root:
469 root = self.writable_root
471 root = self.root
473 tempdir = os.path.normpath(os.path.join(root, "tm
2557 root = property(lambda self: self.__root) variable in class:_RepoStore
4141 root = property(lambda self: self.__root) variable in class:Repository
[all...]
/pkg/src/modules/actions/
H A Duser.py54 # prefer on-disk version for actual login accounts (root)
108 root = image.get_root()
109 pw = PasswordFile(root, lock)
111 ftp = FtpusersFile(root)
319 root = pkgplan.image.get_root()
320 pw = PasswordFile(root, lock=True)
323 ftp = FtpusersFile(root)
H A Dgroup.py73 root = pkgplan.image.get_root()
75 pw = PasswordFile(root, lock=True)
/pkg/src/tests/
H A Dmultiplatform.py149 context_file=node.root().file)
159 if node.root().name.startswith(p):
/pkg/src/modules/client/
H A Dimage.py94 An Image has a root path.
104 An Image of type IMG_USER stores its external state at self.root +
108 self.root + "/var/pkg".
111 system's root Image.
124 def __init__(self, root, user_provided_dir=False, progtrack=None,
171 self.__root = root
236 self.find_root(self.root, user_provided_dir,
239 if not force and self.image_type(self.root) != None:
240 raise apx.ImageAlreadyExists(self.root)
241 if not force and os.path.exists(self.root)
292 def root(self): member in class:Image
[all...]
H A Dhistory.py567 root = d.documentElement
568 for cnode in root.childNodes:
593 root = d.documentElement
597 root.appendChild(client)
623 root = d.documentElement
648 root.appendChild(op)
H A Dbootenv.py78 # record current location of image root so we can remember
80 self.root = self.img.get_root()
83 assert self.root != None
92 # original image root, etc.
104 if self.root != self.img.root:
106 # Since the image root changed and the operation
109 # be recorded in the original image root. This
110 # needs to be done before the image root is
117 # the image root, i
[all...]
H A Dapi.py316 directory, going up to the filesystem root until it finds one.
462 return self._img.image_type(self._img.root)
467 for the live system root."""
478 the active BE for the system's root image."""
485 self._img.root)
572 def root(self): member in class:ImageInterface
573 """The absolute pathname of the filesystem root of the image.
577 return self._img.root
633 "before a refresh can occur.").format(self._img.root))
3361 # Assign a temporary meta root t
[all...]
/pkg/src/modules/bundle/
H A DDirectoryBundle.py46 All owners are set to "root" and groups to "bin", as the ownership
72 for root, dirs, files in os.walk(self.rootdir):
74 path = os.path.join(root, obj)
90 # Set default root and group.
91 owner = "root"
/pkg/src/util/publish/
H A Dupdate_file_layout.py79 fm = file_manager.FileManager(root=dir_loc, readonly=False)
H A Dpkgsurf.py257 file=path, err=str(e), rroot=repo.root))
747 root=target.get_pathname())
/pkg/src/tests/cli/
H A Dt_util_merge.py73 add dir mode=0755 owner=root group=bin path=/usr
74 add dir mode=0755 owner=root group=bin path=/usr/bin
75 add file tmp/sh mode=0555 owner=root group=bin path=/usr/bin/sh
78 add file tmp/bronze1 mode=0444 owner=root group=bin path=/etc/bronze1
79 add file tmp/bronze2 mode=0444 owner=root group=bin path=/etc/bronze2
80 add file tmp/bronzeA1 mode=0444 owner=root group=bin path=/A/B/C/D/E/F/bronzeA1
88 add dir mode=0755 owner=root group=bin path=/etc
89 add dir mode=0755 owner=root group=bin path=/lib
90 add file tmp/sh mode=0555 owner=root group=bin path=/usr/bin/sh
91 add file tmp/libc.so.1 mode=0555 owner=root grou
[all...]
H A Dt_pkg_history.py63 add file tmp/baz mode=0555 owner=root group=bin path=/foo/baz
558 root = tree.getroot()
559 operation = root.find("operation")
569 outfile.write(xml.etree.ElementTree.tostring(root))
/pkg/src/util/apache2/depot/
H A Ddepot_index.py246 self.cfg.set_property("pkg", "pkg_root", self.repo.root)
263 PKG5_REPOSITORY_<repo_prefix> A path to the repository root for the
270 PKG5_WRITABLE_ROOT_<repo_prefix> A path to the writable root for the
271 given <repo_prefix>. If a writable root is not set,
273 repository root, search functionality is not
302 root directories for the repositories we're serving."""
342 repo = sr.Repository(root=path, read_only=True,
633 # index refresh requests if we have a writable root.

Completed in 254 milliseconds

12