Package portage :: Package package :: Package ebuild :: Module digestgen
[hide private]

Module digestgen

source code

Functions [hide private]
 
digestgen(myarchives=None, mysettings=None, myportdb=None)
Generates a digest file if missing.
source code
Variables [hide private]
  __package__ = 'portage.package.ebuild'

Imports: errno, portage, os, MANIFEST2_REQUIRED_HASH, FetchlistDict, use_reduce, InvalidDependString, FileNotFound, PermissionDenied, PortagePackageException, _, colorize, fetch, writemsg, writemsg_stdout, catsplit, spawn_nofetch


Function Details [hide private]

digestgen(myarchives=None, mysettings=None, myportdb=None)

source code 

Generates a digest file if missing. Fetches files if necessary.
NOTE: myarchives and mysettings used to be positional arguments,
        so their order must be preserved for backward compatibility.
@param mysettings: the ebuild config (mysettings["O"] must correspond
        to the ebuild's parent directory)
@type mysettings: config
@param myportdb: a portdbapi instance
@type myportdb: portdbapi
@rtype: int
@return: 1 on success and 0 on failure