aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/command_wrappers.py
Commit message (Collapse)AuthorAge
* 8bit GuidoGuido Günther2018-02-26
|
* command_wrappers: drop long unused Dch()Guido Günther2017-11-27
|
* command_wrapper: quote error stringsGuido Günther2017-11-09
| | | | | | so we don't accidentally try to expand values in error messages Closes: #881254
* command_wrappers: simplify error stringsGuido Günther2017-11-09
| | | | Gbp-Dch: Ignore
* command_wrappers: report proper exception on bad process argumentsGuido Günther2017-10-26
| | | | | | | If subprocess.communicate raised a TypeError due to bad arguments 'ret' was undefined and therefore the real error reason got masked. Closes parts of #879495
* command_wrappers: Work around slightly changed exception outputGuido Günther2017-10-13
| | | | | | | | | The travis instance reports gbp.command_wrappers.CommandExecFailed: '/foo/bar' failed: execution failed: [Errno 2] No such file or directory: '/foo/bar': '/foo/bar' (note the additional /foo/bar). Work around this by ignoring the exception detail which is not important in this case.
* command_wrappers: fix path lookupsGuido Günther2017-09-19
| | | | | | | Python3 performs path lookups by itself when no path is given so remove our path lookup code. Thanks: Nish Aravamudan
* command_wrappers: allow to look up executables in $PATHGuido Günther2017-08-30
|
* Python3: Fix doctest exception namesGuido Günther2017-08-02
| | | | Python3 prefixes the module names
* command_wrappers: make it more explicit that we wrap stdout, stderrGuido Günther2017-08-02
| | | | | This avoids problems with not properly wrapping sys.stdout, sys.stderr when running doctests under nose.
* command_wrappers: port to Python3Guido Günther2017-08-02
|
* command_wrappers: Simplify RunAtCommandGuido Günther2017-01-12
|
* Quote arguments passed to builderGuido Günther2017-01-11
| | | | | Closes: #850869 Thanks: Simon McVittie
* commands: allow to fall back to error reason if stderr is emptyGuido Günther2016-11-04
| | | | | | | Use this in PristineTar and SrcRpmFile to give better error messages if the command doesn't even get to print to stderr (i.e. missing on disk). Closes: #842592
* Command: redirect stdout/stderr to sys.stdout/stderrMarkus Lehtonen2016-09-12
| | | | | | | | | | | | Redirect stdout and stderr of the (child) command to sys.stdout and sys.stderr of the caller, respectively. This change is mainly for the unit tests. It makes Python nose to correctly capture the output of the child command, too, which in turn suppresses a lot of spurious output when running nosetests. Closes: #829690 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* command_wrappers: flake8 cleanGuido Günther2016-09-12
|
* pep8/pyflakes cleanupsGuido Günther2016-09-12
|
* Fix simple spelling errors in comments and stringsOtto Kekäläinen2016-07-03
|
* common/buildpackage: support for different archive formatsMarkus Lehtonen2015-12-02
| | | | | | | | Adds support for defining the archive format of the output of git_archive_single(), e.g. 'zip'. Defaults to 'tar', as before. Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* call debchange instead of dchEvgeni Golov2015-06-30
| | | | | | | | | Call the tool by its actual name instead of the abbriviation. dch is a symlink to debchange, which is not present on Fedora [1]. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1236122 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* Fix FSF address - thanks rpmlintEvgeni Golov2015-06-22
| | | | use gnu.org/licences instead of a postal address, as suggested by Guido
* doctest: Use C locale when parsing command outputGuido Günther2015-06-12
| | | | Otherwise we fail when run in a non C locale
* Command: strip newlines from stdout/err in error msgMarkus Lehtonen2015-04-01
| | | | | | | | Strip extra linefeeds from stdout and stderr output (if captured) when generating the error message, so that the error message itself would not have any unwanted linefeeds. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Add string vs. binary encoding/decodingGuido Günther2015-03-27
| | | | for Python3 compatibility
* command_wrapper: Make error reporting more flexibleGuido Günther2015-03-27
| | | | | | 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.
* Command: simplify __call__ and callGuido Günther2015-03-27
| | | | | | | 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.
* Command: allow to capture stdout tooGuido Günther2015-03-27
| | | | For symmetry with capture_stderr
* Improve error reporting on failed commandsGuido Günther2014-05-22
| | | | | | | Make it more clear if the command exited with non zero exit status. Also don't report the command line twice. Closes: #748248
* Silence dpkg --compare-versionsGuido Günther2013-04-29
| | | | | | 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.
* Use Popen.communicate instead of subprocess callGuido Günther2013-04-29
| | | | | so we can capture stderr and use it in error messages intead of spewing it on the console.
* Revert "Use Popen.communicate instead of subprocess call"Guido Günther2013-04-29
| | | | This reverts commit 0c582cd827f164168a313e0bb4eabf9487bdd088.
* Use Popen.communicate instead of subprocess callGuido Günther2013-04-29
| | | | so we can caputure stderr and pass it along with any errors.
* command_wrappers: allow to silence __call__Guido Günther2013-04-27
| | | | and use that in the doctest to get rid of the spurious output
* command_wrappers: suppress some pylint warningsMarkus Lehtonen2012-11-23
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* gbp.command_wrappers: Reformat to 80 chars line lengthGuido Günther2012-08-02
|
* Make exception syntax consistentGuido Günther2012-07-02
|
* copy_from: remove, not used anymoreGuido Günther2012-02-20
|
* PristineTar: move to separate moduleGuido Günther2012-01-22
| | | | | and make it accessible from GitRepository to group checkout/checkin/lookup.
* command_wrappers.Command: Don't print several error linesGuido Günther2011-10-26
|
* Replace GitTag by GitRepository.create_tag()Guido Günther2011-10-26
|
* Replace GitFetch by GitRepository.fetch()Guido Günther2011-10-23
|
* Replace GitMerge by GitRepository.merge()Guido Günther2011-10-23
|
* Replace GitClone by GitRepository.clone()Guido Günther2011-10-23
|
* Replace GitBranch by GitRepository.create_branch()Guido Günther2011-10-23
|
* Replace GitAdd by GitRepository.add_filesGuido Günther2011-10-22
| | | | Git-Dch: Ignore
* Make create_repo a @classmethodGuido Günther2011-10-22
| | | | | | and GitInit superfluous Git-Dch: Ignore
* Add cwd option to gbp.command_wrappers.CommandGuido Günther2011-10-21
|
* Fix pristine-tar error messageGuido Günther2011-08-23
|
* Leave compression type detection to tar by defaultGuido Günther2011-08-09
|
* Add copyright headers to all non autogenerated filesGuido Günther2011-07-29
| | | | Git-Dch: Ignore