Package rhnpush :: Module archive
[hide private]
[frames] | no frames]

Module archive

source code

Archive Parsing module

Classes [hide private]
  ArchiveException
  DecompressionError
  UnknownArchiveError
  InvalidArchiveError
  ArchiveParser
Explode an zip or (compressed) tar archive and parse files and directories contained therein
  ZipParser
  TarParser
  CpioParser
Functions [hide private]
 
_has_executable(exc)
Return true if the executable is found in the $PATH
source code
 
_my_popen(cmd)
Execute a command as a subprocess and return its exit status
source code
 
_decompress(archive)
[internal] Decompress compressed archives and return the new archive name
source code
 
get_archive_parser(archive, tempdir='/tmp/')
Factory function that returns an ArchiveParser object for the given archive
source code
Variables [hide private]
  __package__ = 'rhnpush'