Lines Matching defs:file

5 # The contents of this file are subject to the terms of the
7 # You may not use this file except in compliance with the License.
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
118 """Used to indicate that the hash name provided for the requested file
122 return _("No file could be found for the specified "
144 file."""
152 return _("The FMRI in ignored-dependency file: {fn} is "
159 file."""
167 return _("The entry in ignored-dependency file: {fn} is "
260 """Used to indicate that the file provided does not exist."""
263 return _("No such file '{0}'.").format(self.data)
361 """Raised when the repository is unable to quarantine a file because
362 a file of that name is already in quarantine.
541 directory and the name of the manifest file, and returns an FMRI
677 # doesn't exist yet or is readonly so a file lock cannot
682 # Attempt to obtain a file lock.
1054 self.__set_file_root(os.path.join(root, "file"))
1166 """Adds a file to an in-flight transaction.
1169 the file should be added to.
1172 file to add.
1174 'basename' is the basename of the file.
1272 """Returns the absolute pathname of the named catalog file."""
1315 def file(self, fhash):
1316 """Returns the absolute pathname of the file specified by the
1381 """Returns the absolute pathname of the manifest file for the
1598 # unexpected file in directory;
1622 # of unexpected file in
1873 # if we're looking at a path to a file hash, and we have a pfmri
1896 message = _("Invalid file hash: {0}").format(
1903 message = _("Missing file: {0}").format(reason["fname"])
1906 message = _("Corrupted gzip file.")
1946 of the hash used to store the file in the repository."""
2004 """Perform hash verification on the given gzip file.
2005 'path' is the full path to the file in the repository. 'pfmri'
2079 inaccessible file, returning the name of that file or directory.
2084 We only return the first file found because for large
2100 this file/dir"""
2121 file/dir."""
2131 # Scan directories checking file permissions. First we
2198 # Scan the entire repository for bad file permissions
2223 # unexpected file in the directory. We
2243 "{0} is not a file".format(
2247 # unexpected file in the directory. We
2297 # store the SHA1 file name for
2298 # file retrieval.
2335 'path' the path to the broken file in the repository
2449 # look for broken package content where the bad file doesn't
2450 # match the path to the manifest (eg. file content) and add
2477 _("Missing file {0} must be fixed by "
2635 # Determine if the standard configuration file exists,
2694 # If only file root specified, treat as version 4
2700 # Don't create the default file root at this point, but
2702 froot = os.path.join(self.root, "file")
2725 # and the base configuration file doesn't exist,
2733 # store for the top-level file root (and it must
2737 froot = os.path.join(self.root, "file")
2917 # Ignore the file root if it's the default one.
2923 # layout for file content. Older repository formats
3099 """Returns the absolute pathname of the named catalog file.
3122 def file(self, fhash, pub=None):
3123 """Returns the absolute pathname of the file specified by the
3135 return rstore.file(fhash)
3142 return rstore.file(fhash)
3249 "file": self.file_requests,
3303 """Returns the absolute pathname of the manifest file for the
3547 """Adds a file to a transaction with the specified Transaction
3673 'path' the path to the broken file in the repository
3891 """Read ignored dependency file."""
4156 can be the pathname of a file or an SMF FMRI. If a pathname is
4161 an existing file or any defaults initially assigned.
4303 for d in ("catalog", "file", "index", "pkg", "trans", "tmp"):
4306 # ...and this file (which can be empty).