Lines Matching refs:name
18 # information: Portions Copyright [yyyy] [name of copyright owner]
78 <name>NUL<offset>NUL<entry_size>NUL<size>NUL<typeflag>NULNL
80 <name> is a string containing the pathname of the file in the
107 def __init__(self, name, mode="r", version=None):
110 'name' should be the absolute path of the file to use when
122 assert os.path.isabs(name)
126 raise InvalidArchiveIndex(name)
129 self.__name = name
140 raise InvalidArchiveIndex(name)
160 def add(self, name, offset, entry_size, size, typeflag):
166 name, offset, entry_size, size, typeflag)))
169 """Returns a generator that yields tuples of the form (name,
191 name, offset, ignored = l.split(b"\0", 2)
192 yield force_str(name), long(offset)
394 if not member.name.startswith(self.__idx_pfx) or \
395 not member.name.endswith(self.__idx_sfx):
398 self.__idx_name = member.name
435 for name, offset in \
437 self.__extract_offsets[name] = \
459 if ti.name == "pkg5.index.0.gz":
520 self.__extract_offsets[member.name] = \
562 'arcname' is an optional string specifying an alternative name
580 # Record name, offset, entry_size, size type for each file.
581 self.__index.add(ti.name, self.__queue_offset, entry_sz,
584 self.__queue.append((pathname, ti.name))
695 if a.name == "signature":
762 'part' is the name of the catalog file part.
819 for name in self.__extract_offsets:
820 if name.startswith(catpath):
833 for name in self.__extract_offsets:
834 if name.startswith(manpath) and name.count("/") == 4:
835 ignored, stem, ver = name.rsplit("/", 2)
838 pfmri = pkg.fmri.PkgFmri(name=stem,
845 fobj = self.get_file(name)
879 'pub' is the prefix (name) of the publisher that the package
899 for name in self.__extract_offsets:
903 if name.endswith(hash_fname):
904 self.extract_to(name, path,
933 'filename' is an optional name to use for the extracted file.
964 'filename' is an optional string indicating the name to use for
965 the extracted file. If not provided, the full member name in
990 if member.name != src:
1000 # No archive index; fallback to retrieval by name.
1022 filename = member.name
1067 # No archive index; fallback to retrieval by name.
1094 'fhash' is the hash name of the file to return.
1096 'pub' is the prefix (name) of the publisher that the package
1114 for name in self.__extract_offsets:
1115 if name.endswith(hash_fname):
1116 return self.get_file(name)
1169 for name in self.__extract_offsets:
1170 if name.count("/") == 1 and \
1171 name.startswith("publisher/"):
1172 ignored, pfx = name.split("/", 1)