summaryrefslogtreecommitdiff
path: root/gbp
AgeCommit message (Collapse)Author
2015-03-27Add string vs. binary encoding/decodingHEADmasterGuido Günther
for Python3 compatibility
2015-03-27Add string vs. binary encoding/decodingGuido Günther
for Python3 compatibility
2015-03-27Don't let pristine-tar spew on stderrGuido Günther
Capture its output and only dump it on failure. This makes "gbp import-orig" and test runs less verbose.
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
2015-03-27Fix print function usage in examples tooGuido Günther
2015-03-27Extract exception message in a less arcane wayGuido Günther
2015-03-26Remove unused variableGuido Günther
Git-Dch: Ignore
2015-03-20Fix paragraph indentation for epydocGuido Günther
2015-03-18Add %(hversion)s to version_to_tag to support some upstreamsDaniel Kahn Gillmor
enigmail upstream uses tags named enigmail-1-8 for 1.8. Other upstreams have used similar conventions, likely as holdovers from CVS (e.g. gnupg 1.4.2 was tagged with V1-4-2). This patch helps packagers work with these upstreams. Closes: #780679 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2015-03-16Allow to set upstream-vcs-tag via gbp.confDaniel Kahn Gillmor
Also pass it through version_to_tag so upstream-vcs-tag = libgpg-error-%(version)s properly expands the version replacement. Closes: #780602
2015-02-25GitRepository/has_submodules: add treeish argumentMarkus Lehtonen
For defining a Git treeish which to look into, instead of the current working copy. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-25config: modify configparser import statementMarkus Lehtonen
Usage of six.moves.configparser in the previous way failed at least with some versions of python-six (e.g. 1.4.1) like > >>> from six.moves.configparser import SafeConfigParser > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named configparser Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-21Remove unused variableGuido Günther
2015-02-20gbp.format: fix one typo and indentationMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20tristate: implement __nonzero__() methodMarkus Lehtonen
Returns False if tristate is 'off', otherwise True ('on' or 'auto'). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20UpstreamSource.guess_version: recognise debian native tarballsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20Don't output additional newlinesGuido Günther
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
2015-02-20Move requests import to downloadsGuido Günther
The requests import takes ages and therefore considerably slows down program start up. This is very much noticeably during bash completion. Before: $ time gbp --list-cmds >/dev/null real 0m0.559s user 0m0.528s sys 0m0.028s After: $ time gbp --list-cmds >/dev/null real 0m0.092s user 0m0.088s sys 0m0.000s
2015-02-20Don't use basestringGuido Günther
to work toward Python3 support
2015-02-20Handle renamed urlparse in Python3Guido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Use six.iteritems() and six.iterkeys()Guido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Handle Python3's changed octal literal syntaxGuido Günther
2015-02-20Use email.utils instead of email.UtilsGuido Günther
works with python 2 and 3
2015-02-20Don't rely on dictionary key orderGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Use six.StringIOGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Don't use dict.has_key()Guido Günther
Not existent in Python3
2015-02-20Handle ConfigParser -> configparser renameGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Don't use print as a statementGuido Günther
via 2to3-3.4 -w -f print . to work towards python3 support Gbp-Dch: Ignore
2015-02-20Convert zip and map to listGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Ignore return types of write and shutil.copyGuido Günther
Python3 does not return None anymore
2015-02-20Remove unused importGuido Günther
Gbp-Dch: Ignore
2015-02-18rpm: suppress stderr when unpacking src.rpmMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-18patchseries: strip numbering when guessing subject from filenameMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-18tests: restore logger module after tampering itMarkus Lehtonen
So that subsequent log capture (by GbpLogTester) is not affected. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-18import-srpm: support gbp-config commandMarkus Lehtonen
Slight refactoring of argument parsing so that the gbp-config command is able to show the config values. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-17git-dch --git-author: separate author and emailDmitrij Tejblum
Allow --git-author to work if either author or email is not specified in the git config, taking the other config option into account.
2015-02-08parse_gbp_commands: support command filteringGuido Günther
When we write out patches to subdirs using a topic we want to filter out this topic from the commit message. Support for this was lost in 7ce15d2434ee42aa5a1afce3d03069c5efb2db1b add it back. Also fix parsing of the deprecated commands.
2015-02-08pq: Generate new style Gbp-Pq: Topic <topic> entriesGuido Günther
We shouldn't generate the deprecated ones
2015-02-08pq: deprecate the usage of 'gbp-pq-topic:'Markus Lehtonen
Replaced by the "Gbp[-Pq]: Topic <topic>" command. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-01-31repository: fix head docstringGuido Günther
head is not a function so it doesn't _return_ anything Gbp-Dch: Ignore
2015-01-29buildpackage: Tag currently checked out headGuido Günther
Tag the head checked out at command invocation. The build can take some time and the repo might have changed underneath us. Closes: #776506
2015-01-29Revert "pq: deprecate the usage of 'gbp-pq-topic:'"Guido Günther
"Gbp-Pq: Topic <topic>" leaves the marker in the exorted patch so we shouldn't use it by default. This reverts commit 7ce15d2434ee42aa5a1afce3d03069c5efb2db1b.
2015-01-25config: Deprecate legacy config sectionsGuido Günther
We deprecate sections starting with git- and gbp- to reduce the confusion about what gets parsed first.
2015-01-25pq: deprecate the usage of 'gbp-pq-topic:'Markus Lehtonen
Replaced by the "Gbp[-Pq]: Topic <topic>" command. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-01-22dch: Support Gbp-Dch: besides Git-Dch:Guido Günther
2015-01-22Make Debian and Git spelling consistentGuido Günther
2015-01-22vfs: remove wrong docstringGuido Günther
Gbp-Dch: Ignore
2015-01-22pristinetar: fix docstringGuido Günther
Gbp-Dch: Ignore