Package gbp :: Module command_wrappers
[hide private]
[frames] | no frames]

Module command_wrappers

Simple class wrappers for the various external commands needed by git-buildpackage and friends

Classes [hide private]
  CommandExecFailed
Exception raised by the Command class
  Command
Wraps a shell command, so we don't have to store any kind of command line options in one of the git-buildpackage commands
  RunAtCommand
Run a command in a specific directory
  UnpackTarArchive
Wrap tar to unpack a compressed tar archive
  PackTarArchive
Wrap tar to pack a compressed tar archive
  CatenateTarArchive
Wrap tar to catenate a tar file with the next
  RemoveTree
Wrap rm to remove a whole directory tree
  Dch
Wrap dch and set a specific version
  DpkgSourceExtract
Wrap dpkg-source to extract a Debian source package into a certain directory, this needs
  UnpackZipArchive
Wrap zip to Unpack a zip file
  CatenateZipArchive
Wrap zipmerge tool to catenate a zip file with the next
  GitCommand
Mother/Father of all git commands
Functions [hide private]
 
proxy_stdf(*args, **kwds)
Circulate stdout/stderr via a proper file object.
Variables [hide private]
  __package__ = 'gbp'
Function Details [hide private]

proxy_stdf(*args, **kwds)

 

Circulate stdout/stderr via a proper file object. Designed to work around a problem where Python nose replaces sys.stdout/stderr with a custom 'Tee' object that is not a file object (compatible) and thus causes a crash with Popen.

Decorators:
  • @contextmanager