summaryrefslogtreecommitdiff
path: root/gbp/command_wrappers.py
AgeCommit message (Collapse)Author
2015-03-27Add string vs. binary encoding/decodingGuido Günther
for Python3 compatibility
2015-03-27command_wrapper: Make error reporting more flexibleGuido Günther
We allow to substitute stderr, stdout and error_reason in run_error now. These changes the API for derived classses slightly so fix them up as well.
2015-03-27Command: simplify __call__ and callGuido Günther
Get rid of __run and use the same codepaths for both. This also makes the same instance variables available after both calls. The funtions still differ in their default logging behaviour though.
2015-03-27Command: allow to capture stdout tooGuido Günther
For symmetry with capture_stderr
2014-05-22Improve error reporting on failed commandsGuido Günther
Make it more clear if the command exited with non zero exit status. Also don't report the command line twice. Closes: #748248
2013-04-29Silence dpkg --compare-versionsGuido Günther
and add the error detail to the exception message. This silences the testsuite and makes sure we have error message and exception output in sync.
2013-04-29Use Popen.communicate instead of subprocess callGuido Günther
so we can capture stderr and use it in error messages intead of spewing it on the console.
2013-04-29Revert "Use Popen.communicate instead of subprocess call"Guido Günther
This reverts commit 0c582cd827f164168a313e0bb4eabf9487bdd088.
2013-04-29Use Popen.communicate instead of subprocess callGuido Günther
so we can caputure stderr and pass it along with any errors.
2013-04-27command_wrappers: allow to silence __call__Guido Günther
and use that in the doctest to get rid of the spurious output
2012-11-23command_wrappers: suppress some pylint warningsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-08-02gbp.command_wrappers: Reformat to 80 chars line lengthGuido Günther
2012-07-02Make exception syntax consistentGuido Günther
2012-02-20copy_from: remove, not used anymoreGuido Günther
2012-01-22PristineTar: move to separate moduleGuido Günther
and make it accessible from GitRepository to group checkout/checkin/lookup.
2011-10-26command_wrappers.Command: Don't print several error linesGuido Günther
2011-10-26Replace GitTag by GitRepository.create_tag()Guido Günther
2011-10-23Replace GitFetch by GitRepository.fetch()Guido Günther
2011-10-23Replace GitMerge by GitRepository.merge()Guido Günther
2011-10-23Replace GitClone by GitRepository.clone()Guido Günther
2011-10-23Replace GitBranch by GitRepository.create_branch()Guido Günther
2011-10-22Replace GitAdd by GitRepository.add_filesGuido Günther
Git-Dch: Ignore
2011-10-22Make create_repo a @classmethodGuido Günther
and GitInit superfluous Git-Dch: Ignore
2011-10-21Add cwd option to gbp.command_wrappers.CommandGuido Günther
2011-08-23Fix pristine-tar error messageGuido Günther
2011-08-09Leave compression type detection to tar by defaultGuido Günther
2011-07-29Add copyright headers to all non autogenerated filesGuido Günther
Git-Dch: Ignore
2011-07-29Fix some epydoc warningsGuido Günther
Git-Dch: Ignore
2011-07-25git-import-orig: support filters for all input formatsGuido Günther
Closes: #628645
2011-07-25Support importing zip archivesGuido Günther
This can now be easily extended to support other formats
2011-03-18command_wrappers: Add create tar archiveChow Loong Jin
Git-Dch: Ignore
2011-03-18command_wrappers,git: remove unused Git functionsGuido Günther
The rest will be moved into gbp.git. Git-Dch: Ignore
2011-01-18git-import-dscs: Ignore debsnap download errorsGuido Günther
to cope with binNMUs. Based on a patch from Jonathan Nieder. Closes: #610376
2010-12-29Use logging functionsGuido Günther
2010-11-16Add logging functionsGuido Günther
This allows us to color and prefix the output. Closes: #544332
2010-07-04Add extra_env to GitTagGuido Günther
Git-Dch: Ignore
2009-12-24Fix commentsGuido Günther
Git-Dch: Ignore
2009-10-24add GitFetchGuido Günther
2009-09-05make GitBranch remote branch awareGuido Günther
2009-09-05add GitCloneGuido Günther
2009-08-23add doctest for Command.call()Guido Günther
and fix error in exception handling revealed by the test.
2009-08-23add doctest for Command.__call__()Guido Günther
2009-08-22run doctests with noseGuido Günther
2009-06-13add filter-pristine-tarMehdi Dogguy
to filter upstream tarball before passing it to pristine-tar Closes: #520722
2009-05-02add commit argument for GitTagGuido Günther
2009-04-24restore default signal handlers before subprocess.callGuido Günther
Closes: #525411
2008-11-22rename GitInitDB to GitInitGuido Günther
2008-06-24command_wrappers.py: add a GitMerge wrapper class.Adeodato Simó
2008-05-17add call() doesn't mangle return codes nor uses stderrGuido Guenther
2008-04-14fix "pristine-tar missing" error messageGuido Guenther