Package daklib :: Module pdiff
[hide private]
[frames] | no frames]

Module pdiff

source code

Classes [hide private]
  PDiffHashes
  PDiffIndex
Functions [hide private]
 
_prune_history(order, history, maximum) source code
 
_read_hashes(history, history_order, ind, hashind, lines) source code
Variables [hide private]
  HASH_FIELDS = [('SHA1-History', 0, 1, "", True), ('SHA256-Hist...
  HASH_FIELDS_TABLE = {x [0]:(x [1], x [2], x [4]) for x in HASH...
  _PDiffHashes = collections.namedtuple('_PDiffHashes', ['size',...
  shell = kwargs.pop('shell', False)
  proc = await asyncio.create_subprocess_exec(* args,** kwargs)
  retcode = await proc.wait()
  fh = tempfile.NamedTemporaryFile("w+") if named_temp_file else...
  hashes_decompressed = PDiffHashes.from_file(difff)
  hashes_compressed = PDiffHashes.from_file(difffgz)

Imports: asyncio, collections, os, subprocess, sys, tempfile, apt_pkg, DakHashes


Variables Details [hide private]

HASH_FIELDS

Value:
[('SHA1-History', 0, 1, "", True), ('SHA256-History', 0, 2, "", True),\
 ('SHA1-Patches', 1, 1, "", True), ('SHA256-Patches', 1, 2, "", True),\
 ('SHA1-Download', 2, 1, ".gz", True), ('SHA256-Download', 2, 2, ".gz"\
, True), ('X-Unmerged-SHA1-History', 0, 1, "", False), ('X-Unmerged-SH\
A256-History', 0, 2, "", False), ('X-Unmerged-SHA1-Patches', 1, 1, "",\
 False), ('X-Unmerged-SHA256-Patches', 1, 2, "", False), ('X-Unmerged-\
SHA1-Download', 2, 1, ".gz", False), ('X-Unmerged-SHA256-Download', 2,\
 2, ".gz", False),]

HASH_FIELDS_TABLE

Value:
{x [0]:(x [1], x [2], x [4]) for x in HASH_FIELDS}

_PDiffHashes

Value:
collections.namedtuple('_PDiffHashes', ['size', 'sha1', 'sha256'])

fh

Value:
tempfile.NamedTemporaryFile("w+") if named_temp_file else tempfile.Tem\
poraryFile("w+")