MCPcopy
hub / github.com/saltstack/salt / __init__

Method __init__

salt/utils/pkg/deb.py:303–321  ·  view source on GitHub ↗
(self, line, file=None)

Source from the content-addressed store, hash-verified

301 """
302
303 def __init__(self, line, file=None):
304 self.invalid = False
305 self.disabled = False # identified as disabled if commented
306 self.type = "" # type of the source (deb, deb-src)
307 self.architectures = []
308 self._signedby = ""
309 self._trusted = None
310 self.uri = ""
311 self.dist = "" # distribution name
312 self.comps = [] # list of available componetns (or empty)
313 self.comment = "" # comment (optional)
314 self.line = line # the original sources.list entry
315 if file is None:
316 file = _APT_SOURCES_LIST
317 if file.endswith(".sources"):
318 raise ValueError("Classic SourceEntry cannot be written to .sources file")
319 self.file = file # the file that the entry is located in
320 self.parse(line)
321 self.children = []
322
323 def __eq__(self, other):
324 """

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected