tools/git-buildpackage.git
9 years agoimport-orig: rework sourcecode preparation and filtering
Markus Lehtonen [Wed, 14 Nov 2012 07:03:37 +0000 (09:03 +0200)]
import-orig: rework sourcecode preparation and filtering

Take in to use the newly added prepare_sources() function. Drop dead,
unneeded code.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoimport-orig: new function for filtering/re-packing sources
Markus Lehtonen [Mon, 26 Aug 2013 07:22:00 +0000 (10:22 +0300)]
import-orig: new function for filtering/re-packing sources

Introduces a new function prepare_sources() that prepares upstream
sources for importing into upstream branch and pristine-tar. That
includes unpacking, filtering and re-packing sources. What somewhat
complicates the logic is that it tries to avoid excess unpacking/packing
of the sources.

Also fixes the unpacking / filtering / repacking logic which was broken
with some parameter combinations.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource.unpack: return UpstreamSource instance
Markus Lehtonen [Thu, 6 Jun 2013 12:19:37 +0000 (15:19 +0300)]
UpstreamSource.unpack: return UpstreamSource instance

Trying to keep UpstreamSource in consistent state so that unpacked and
packed sources are kept in sync.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource.pack: reuse unpacked dir if no filter is used
Markus Lehtonen [Thu, 6 Jun 2013 12:21:48 +0000 (15:21 +0300)]
UpstreamSource.pack: reuse unpacked dir if no filter is used

Set the unpacked attribute to the source dir if the content is not
filtered.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource: implement prefix guessing
Markus Lehtonen [Thu, 22 Aug 2013 13:24:13 +0000 (16:24 +0300)]
UpstreamSource: implement prefix guessing

Add a new attribure 'prefix', i.e. the "leading directory name" in an
archive. For example, this usually is '<name>-<version>' in release
tarballs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
9 years agoUpstreamSource: check that the sources exist
Markus Lehtonen [Fri, 23 Aug 2013 11:04:12 +0000 (14:04 +0300)]
UpstreamSource: check that the sources exist

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agotests: test find_source() with unittest
Markus Lehtonen [Mon, 13 Jan 2014 16:39:05 +0000 (18:39 +0200)]
tests: test find_source() with unittest

Change doctests to unittests in order to have more flexibility in
testing.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource: store the absolute path
Markus Lehtonen [Fri, 23 Aug 2013 11:01:39 +0000 (14:01 +0300)]
UpstreamSource: store the absolute path

This is more robust and reliable, e.g. in case cwd is changed.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource: move version guessing logic to PkgPolicy
Markus Lehtonen [Fri, 23 Aug 2013 10:39:19 +0000 (13:39 +0300)]
UpstreamSource: move version guessing logic to PkgPolicy

PkgPolicy is more logical context, for example if guessing version from
a plain filename and not a real file.

Also, changes guess_version() to always return a tuple to simplify
checking its return value.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource: introduce is_tarball() method
Markus Lehtonen [Mon, 9 Jul 2012 14:19:27 +0000 (17:19 +0300)]
UpstreamSource: introduce is_tarball() method

New method for checking if the sources are a tarball (possibly for
checking if the sources are committable by pristine-tar).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource: add 'archive_fmt' and 'compression' properties
Markus Lehtonen [Mon, 9 Jul 2012 14:16:21 +0000 (17:16 +0300)]
UpstreamSource: add 'archive_fmt' and 'compression' properties

New properties for easily getting the archive format (tar, zip, ...) and
compression format (gzip, bzip2, ...) of the sources.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoIntroduce PkgPolicy.is_valid_orig_archive()
Markus Lehtonen [Mon, 9 Jul 2012 13:10:37 +0000 (16:10 +0300)]
Introduce PkgPolicy.is_valid_orig_archive()

A new method for checking if the given filename is usable as a orig
(upstream) source archive.

Also, takes this method into use in the UpstreamSource class.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource.pack: support prefix mangling
Markus Lehtonen [Thu, 14 Jun 2012 16:30:26 +0000 (19:30 +0300)]
UpstreamSource.pack: support prefix mangling

Add support for changing the prefix directory inside the tarball that is
generated. Also, fixes a bug that caused a "prefix-less" tarball to get
one, if unpacked and then repacked.

Also, adds this support to repack_source() in common/import_orig.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoimport-orig: move repacked_tarball_name() out from common
Markus Lehtonen [Fri, 15 Jun 2012 06:00:35 +0000 (09:00 +0300)]
import-orig: move repacked_tarball_name() out from common

Moves repacked_tarball_name() from scripts/common back to the
Debian-specific script. The logic is too Debian-specific for RPM, after
all.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoimport-orig: simplify repack_source() and tmpdir handling
Markus Lehtonen [Fri, 15 Jun 2012 05:43:12 +0000 (08:43 +0300)]
import-orig: simplify repack_source() and tmpdir handling

Now a tmpdir is always created and sources are always unpacked into
there.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoimport-orig: implement --create-missing-branches option
Markus Lehtonen [Wed, 12 Feb 2014 13:11:30 +0000 (15:11 +0200)]
import-orig: implement --create-missing-branches option

Create the upstream branch if it does not exist. Use the same option
name that import-dsc has.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodocs: enable building html docs with docbook2html
Markus Lehtonen [Mon, 13 Feb 2012 10:28:13 +0000 (12:28 +0200)]
docs: enable building html docs with docbook2html

This is useful if sgml2x package is not available.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: add diff_status method
Markus Lehtonen [Fri, 14 Sep 2012 10:40:14 +0000 (13:40 +0300)]
GitRepository: add diff_status method

This is a method of getting the filename and status information of a
diff. That is, a list of files that changed and their status, "added",
"modified" etc.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agogbp.git: Reimplement rfc822 date parsing without dateutil
Ed Bartosh [Wed, 30 May 2012 06:02:55 +0000 (09:02 +0300)]
gbp.git: Reimplement rfc822 date parsing without dateutil

In order to get rid of dependency to dateutil.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopq/parse_gbp_commands: return non-matched lines
Markus Lehtonen [Thu, 30 Jan 2014 15:46:18 +0000 (17:46 +0200)]
pq/parse_gbp_commands: return non-matched lines

In order to make it easy to re-use this function in changelog
generation.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.add_files: consistently update ALL tracked files
Markus Lehtonen [Tue, 3 Sep 2013 13:09:11 +0000 (16:09 +0300)]
GitRepository.add_files: consistently update ALL tracked files

Use the --all option of git-add so that all tracked files are updated in
all conditions. Previously deletion of tracked files was not staged, for
example.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.add_files: use GitArgs
Markus Lehtonen [Fri, 6 Jul 2012 12:51:14 +0000 (15:51 +0300)]
GitRepository.add_files: use GitArgs

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: allow repo inititialization from subdir
Markus Lehtonen [Tue, 5 Jun 2012 11:55:19 +0000 (14:55 +0300)]
GitRepository: allow repo inititialization from subdir

This allows initialization of a GitRepository object, even if the
current working directory (or path given to GitRepository) is not the
top level directory of the git repository.

Don't guess the git meta data dir, but, take it as reported by git
itself.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: Implement status method
Ed Bartosh [Wed, 6 Jun 2012 11:45:44 +0000 (14:45 +0300)]
GitRepository: Implement status method

Simple wrapper to the git-status command.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: raise GitRepositoryError instead of GbpError
Markus Lehtonen [Mon, 25 Mar 2013 13:57:24 +0000 (15:57 +0200)]
GitRepository: raise GitRepositoryError instead of GbpError

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository/rev_parse: use _git_inout()
Markus Lehtonen [Tue, 11 Sep 2012 12:08:13 +0000 (15:08 +0300)]
GitRepository/rev_parse: use _git_inout()

instead of the deprecated _git_getoutput() method.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository/git_command: strip stderr output in case of error
Markus Lehtonen [Wed, 11 Dec 2013 13:50:13 +0000 (15:50 +0200)]
GitRepository/git_command: strip stderr output in case of error

In order to get rid of extra line feeds in exception message.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository/has_submodules: add treeish argument
Markus Lehtonen [Fri, 27 Jun 2014 05:36:29 +0000 (08:36 +0300)]
GitRepository/has_submodules: add treeish argument

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>
9 years agoGitRepository.create_branch: add 'force' option
Markus Lehtonen [Fri, 13 Sep 2013 06:53:16 +0000 (09:53 +0300)]
GitRepository.create_branch: add 'force' option

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.commit_files: add edit argument
Markus Lehtonen [Wed, 5 Feb 2014 14:11:42 +0000 (16:11 +0200)]
GitRepository.commit_files: add edit argument

In order to be able to spawn an editor, similarly to other commitX
methods in GitRepository.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.commit_all: add committer_info argument
Markus Lehtonen [Wed, 5 Feb 2014 14:11:42 +0000 (16:11 +0200)]
GitRepository.commit_all: add committer_info argument

For setting the committer name/email/date - similarly to author_info.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.commit_files: add committer_info argument
Markus Lehtonen [Wed, 5 Feb 2014 14:11:42 +0000 (16:11 +0200)]
GitRepository.commit_files: add committer_info argument

For setting the committer name/email/date - similarly to author_info.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGbpOptionParser: allow using the default 'dest' attribute
Markus Lehtonen [Mon, 20 May 2013 08:28:51 +0000 (11:28 +0300)]
GbpOptionParser: allow using the default 'dest' attribute

Make it possible to add options without explicitly defining the 'dest'
attribute - in which case the default of OptionParser is used.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: implement create_tree method
Markus Lehtonen [Thu, 10 Apr 2014 08:30:06 +0000 (11:30 +0300)]
GitRepository: implement create_tree method

New method for creating tree objects from a directory content.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: fix the 'edit' mode in commit methods
Markus Lehtonen [Thu, 6 Feb 2014 07:22:59 +0000 (09:22 +0200)]
GitRepository: fix the 'edit' mode in commit methods

Previously the editor would not show in the shell because stdout was
captured.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: allow interactive commands
Markus Lehtonen [Thu, 6 Feb 2014 07:17:56 +0000 (09:17 +0200)]
GitRepository: allow interactive commands

Make it possible for git commands to output directly to stdout without
redirection (i.e. capturing their stdout stream).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agobuildpackage: refactor tarball compression
Markus Lehtonen [Mon, 14 Jul 2014 07:25:19 +0000 (10:25 +0300)]
buildpackage: refactor tarball compression

Introduce a new function for running the compressor commands. Unifies
exception/error handling - GbpError will be returned if the compressor
fails.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agobuildpackage/dump_tree: add 'recursive' option
Markus Lehtonen [Tue, 17 Sep 2013 12:13:40 +0000 (15:13 +0300)]
buildpackage/dump_tree: add 'recursive' option

For selecting whether to dump all the files recursively or just the top
level directory of the tree.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.archive: add 'paths' option
Markus Lehtonen [Tue, 17 Sep 2013 11:47:21 +0000 (14:47 +0300)]
GitRepository.archive: add 'paths' option

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.archive: drop the '**kwargs' argument
Markus Lehtonen [Thu, 12 Sep 2013 10:36:08 +0000 (13:36 +0300)]
GitRepository.archive: drop the '**kwargs' argument

Unused and misleading.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agocommon/buildpackage: use GitRepository for submodules
Markus Lehtonen [Thu, 12 Sep 2013 10:30:36 +0000 (13:30 +0300)]
common/buildpackage: use GitRepository for submodules

Initialize a GitRepository object for each submodule in
git_archive_submodules().

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agobuildpackage/dump_tree: use GitRepository.archive()
Markus Lehtonen [Tue, 5 Jun 2012 12:18:24 +0000 (15:18 +0300)]
buildpackage/dump_tree: use GitRepository.archive()

Make dump_tree() utilize the GitRepository.archive() method - similarly
to git_archive_submodules() - instead of ad-hoc Python pipes. This makes
dump_tree() work independent of the callers current working directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agobuildpackage/git_archive_single: use GitRepository.archive()
Markus Lehtonen [Tue, 15 May 2012 15:13:43 +0000 (18:13 +0300)]
buildpackage/git_archive_single: use GitRepository.archive()

Use GitRepository.archive() method like git_archive_submodules() does.
This makes it possible to call git_archive_single() independent of the
callers current working directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoChange compressor cmdline opts in compressor_opts to a list
Markus Lehtonen [Tue, 18 Sep 2012 15:16:50 +0000 (18:16 +0300)]
Change compressor cmdline opts in compressor_opts to a list

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agocommon/buildpackage: support for different archive formats
Markus Lehtonen [Tue, 15 May 2012 13:37:33 +0000 (16:37 +0300)]
common/buildpackage: support for different archive formats

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>
9 years agoGitRepository.archive: support getting tar data as return value
Markus Lehtonen [Thu, 12 Sep 2013 07:47:35 +0000 (10:47 +0300)]
GitRepository.archive: support getting tar data as return value

Return tar data as a generator object, if the 'output' option is not
defined.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository.__git_inout: prevent blocking of stdin
Markus Lehtonen [Wed, 18 Sep 2013 14:20:41 +0000 (17:20 +0300)]
GitRepository.__git_inout: prevent blocking of stdin

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoGitRepository: new method for getting git output as generator
Markus Lehtonen [Tue, 10 Sep 2013 12:29:31 +0000 (15:29 +0300)]
GitRepository: new method for getting git output as generator

Add a new _git_inout2() helper method that returns the git output
(stdout) as a generator - instead of all stdout data in one string.
Useful for handling git commands that are expected to have a lot of
stdout data, like git-archive.

Also, changes the private __git_inout() method to return a generator.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodocs: document the --customizations option of gbp dch
Markus Lehtonen [Mon, 26 May 2014 10:24:23 +0000 (13:24 +0300)]
docs: document the --customizations option of gbp dch

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodocs: document the --interactive option of gbp-import-orig
Markus Lehtonen [Wed, 21 May 2014 10:57:52 +0000 (13:57 +0300)]
docs: document the --interactive option of gbp-import-orig

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agonotifications: make notify() more generic
Markus Lehtonen [Tue, 13 May 2014 13:41:32 +0000 (16:41 +0300)]
notifications: make notify() more generic

In order to be able to re-use it in other tools than git-buildpackage.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopq: make sure we always get a sane author
Markus Lehtonen [Tue, 29 Apr 2014 11:07:37 +0000 (14:07 +0300)]
pq: make sure we always get a sane author

Prevent a crash when the author (for a raw diff) was None because no
name/email could be determined from git config or environment variables.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopq: deprecate the usage of 'gbp-pq-topic:'
Markus Lehtonen [Wed, 4 Sep 2013 13:16:59 +0000 (16:16 +0300)]
pq: deprecate the usage of 'gbp-pq-topic:'

Replaced by the "Gbp[-Pq]: Topic <topic>" command.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agolog: don't automatically setup gbp-specific logger
Markus Lehtonen [Thu, 10 Jul 2014 06:42:35 +0000 (09:42 +0300)]
log: don't automatically setup gbp-specific logger

This makes it nicer to use gbp.* modules (e.g. gbp.git) in other
software projects which may have their own logging setup. After this
change, just importing gbp.* modules won't forcibly setup gbp-specific
logging. However, gbp logging is initialized whenever the
gbp.log.getLogger function is called which makes logging in existing gbp
commands behave just like before.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agotristate: implement __nonzero__() method
Markus Lehtonen [Mon, 2 Jun 2014 07:14:52 +0000 (10:14 +0300)]
tristate: implement __nonzero__() method

Returns False if tristate is 'off', otherwise True ('on' or 'auto').

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoimport-srpm: support --upstream-vcs-tag cmdline option
Markus Lehtonen [Thu, 30 May 2013 14:35:57 +0000 (17:35 +0300)]
import-srpm: support --upstream-vcs-tag cmdline option

Similar to the corresponding option in gbp import-orig.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agorpm tests: disable one anomalous pylint error
Markus Lehtonen [Mon, 21 Jul 2014 09:46:40 +0000 (12:46 +0300)]
rpm tests: disable one anomalous pylint error

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agotests: add tests for UpstreamSource.guess_version()
Markus Lehtonen [Fri, 25 Jul 2014 05:58:23 +0000 (08:58 +0300)]
tests: add tests for UpstreamSource.guess_version()

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoUpstreamSource.guess_version: recognise debian native tarballs
Markus Lehtonen [Thu, 6 Jun 2013 11:53:45 +0000 (14:53 +0300)]
UpstreamSource.guess_version: recognise debian native tarballs

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoComponentTestBase: add dirs argument to _check_repo_state()
Markus Lehtonen [Fri, 18 Jul 2014 12:37:48 +0000 (15:37 +0300)]
ComponentTestBase: add dirs argument to _check_repo_state()

Make difference between regular files and directories, eliminating the
requirement of listing directories in the file list.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoComponentTestBase: add ls_tree() method
Markus Lehtonen [Thu, 26 Jun 2014 07:05:01 +0000 (10:05 +0300)]
ComponentTestBase: add ls_tree() method

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoComponentTestBase: add check_files() method
Markus Lehtonen [Thu, 26 Jun 2014 07:01:18 +0000 (10:01 +0300)]
ComponentTestBase: add check_files() method

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoComponentTestBase: add a per-class toplevel temp dir
Markus Lehtonen [Wed, 2 Oct 2013 13:35:32 +0000 (16:35 +0300)]
ComponentTestBase: add a per-class toplevel temp dir

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoComponentTestBase: ignore system and user config
Markus Lehtonen [Thu, 26 Jun 2014 10:35:19 +0000 (13:35 +0300)]
ComponentTestBase: ignore system and user config

User might have a system and/or user specific gbp config files. Disable
these config files so that they don't affect the component tests.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agolog: fix auto colorizing for custom streams
Markus Lehtonen [Thu, 10 Jul 2014 08:26:19 +0000 (11:26 +0300)]
log: fix auto colorizing for custom streams

Check for existence of isatty() method in the stream object. Some custom
streams (e.g. in nose) do not necessarily have this.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agonotify: catch RuntimeError when importing pynotify
Markus Lehtonen [Thu, 12 Jun 2014 09:04:09 +0000 (12:04 +0300)]
notify: catch RuntimeError when importing pynotify

Work around a problem in some distros (e.g. Fedora) where "import
pynotify" crashes in RuntimeError in some cases, e.g. when DISPLAY env
variable is not set.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agogbp-dch: fix handling of the '--meta' option
Markus Lehtonen [Fri, 6 Jun 2014 07:22:31 +0000 (10:22 +0300)]
gbp-dch: fix handling of the '--meta' option

Make it effective again - previously it was totally ignored. Also,
change it's default value to True to match the current behavior.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoDocument changes and release 0.6.22 debian/0.6.22
Guido Günther [Wed, 29 Oct 2014 06:47:29 +0000 (07:47 +0100)]
Document changes and release 0.6.22

9 years agogit.vfs: fix close method
Guido Günther [Wed, 29 Oct 2014 06:46:35 +0000 (07:46 +0100)]
git.vfs: fix close method

Preventing a infinite recursion which can be triggered by gbp pq export
--commit.

9 years agoDocument changes and release 0.6.21
Guido Günther [Fri, 17 Oct 2014 16:41:21 +0000 (18:41 +0200)]
Document changes and release 0.6.21

9 years agoUpdate README a bit
Guido Günther [Fri, 17 Oct 2014 16:29:15 +0000 (18:29 +0200)]
Update README a bit

Git-Dch: Ignore

9 years agoComplete setup.py for pypi
Guido Günther [Fri, 17 Oct 2014 16:24:01 +0000 (18:24 +0200)]
Complete setup.py for pypi

9 years agoImprove change reporting a bit
Guido Günther [Fri, 17 Oct 2014 15:31:48 +0000 (17:31 +0200)]
Improve change reporting a bit

9 years agoman: fix option argument for --git-pbuilder-options
Guido Günther [Fri, 17 Oct 2014 11:01:34 +0000 (13:01 +0200)]
man: fix option argument for --git-pbuilder-options

9 years agopq: Don't fail commit if the series file is empty on the source branch
Guido Günther [Tue, 14 Oct 2014 17:18:20 +0000 (19:18 +0200)]
pq: Don't fail commit if the series file is empty on the source branch

9 years agoDocument changes and release 0.6.20 debian/0.6.20
Guido Günther [Sun, 12 Oct 2014 09:42:52 +0000 (11:42 +0200)]
Document changes and release 0.6.20

9 years agopq: Add "pq export --commit" option
Guido Günther [Sat, 6 Sep 2014 11:40:14 +0000 (13:40 +0200)]
pq: Add "pq export --commit" option

This commits the changes in the pq right away. This is currently
experimental and subject to change.

9 years agometa-closes: Move help text to GbpOptionParser.help
Guido Günther [Fri, 26 Sep 2014 08:31:48 +0000 (10:31 +0200)]
meta-closes: Move help text to GbpOptionParser.help

9 years agopq: document --drop
Guido Günther [Sat, 13 Sep 2014 10:53:15 +0000 (12:53 +0200)]
pq: document --drop

9 years agoAllow to always drop pq branch after export
Guido Günther [Fri, 12 Sep 2014 11:05:47 +0000 (13:05 +0200)]
Allow to always drop pq branch after export

Closes: #761160

9 years agoDocument changes and release 0.6.19 debian/0.6.19
Guido Günther [Sun, 7 Sep 2014 07:25:53 +0000 (09:25 +0200)]
Document changes and release 0.6.19

9 years agoUpdate to git-pbuilder 1.33
Guido Günther [Sun, 7 Sep 2014 07:25:30 +0000 (09:25 +0200)]
Update to git-pbuilder 1.33

9 years agoDocument changes and release 0.6.18 debian/0.6.18
Guido Günther [Sat, 6 Sep 2014 11:41:27 +0000 (13:41 +0200)]
Document changes and release 0.6.18

9 years agoMention --no-merge
Guido Günther [Mon, 1 Sep 2014 07:36:11 +0000 (09:36 +0200)]
Mention --no-merge

Closes: #760091

9 years agoDon't delete *_source.changes on source only builds
Guido Günther [Tue, 26 Aug 2014 09:08:27 +0000 (11:08 +0200)]
Don't delete *_source.changes on source only builds

Closes: #758726

9 years agoDocument changes and release 0.6.17 debian/0.6.17
Guido Günther [Sun, 24 Aug 2014 09:31:57 +0000 (11:31 +0200)]
Document changes and release 0.6.17

9 years agobash completion: make command list dynamic
Guido Günther [Sun, 24 Aug 2014 09:24:52 +0000 (11:24 +0200)]
bash completion: make command list dynamic

Use "gbp --list-cmds" so we don't have to hardcode the available
commands and get support for the RPM ones as they show up.

9 years agoUnify doc strings a bit
Guido Günther [Sat, 23 Aug 2014 16:18:10 +0000 (18:18 +0200)]
Unify doc strings a bit

since they now show up with --list-cmds

9 years agoAllow to list all available commands
Guido Günther [Sat, 23 Aug 2014 16:10:16 +0000 (18:10 +0200)]
Allow to list all available commands

9 years agogbp: add --version option
Guido Günther [Sat, 23 Aug 2014 13:14:18 +0000 (15:14 +0200)]
gbp: add --version option

Closes: #758909

9 years agoImprove error messages on formatting errors
Guido Günther [Tue, 19 Aug 2014 18:07:35 +0000 (20:07 +0200)]
Improve error messages on formatting errors

Make it easier for the user to detect misformated replacement strings in
config files and command line options.

9 years agobuildpackage: Make debian-tag message configurable
Kamal Mostafa [Tue, 19 Aug 2014 15:14:47 +0000 (17:14 +0200)]
buildpackage: Make debian-tag message configurable

New config option --git-debian-tag-msg allows for the specification of
the message format string for signed debian-tags.

When left unset, the default debian-tag-msg format is still:

    %(pkg)s Debian release %(version)s

Signed-off-by: Kamal Mostafa <kamal@whence.com>
9 years agodch: Only modify the mainttrailer when --git-author is in use
Bla Fasel [Mon, 11 Aug 2014 09:09:32 +0000 (11:09 +0200)]
dch: Only modify the mainttrailer when --git-author is in use

9 years agoUse better variable name
Bla Fasel [Mon, 11 Aug 2014 09:00:16 +0000 (11:00 +0200)]
Use better variable name

It's a boolean indicating wether we fetch the author information from
git not the author information itself.

Git-Dch: Ignore

9 years agoBrown paper bag, please
Bla Fasel [Sun, 10 Aug 2014 23:29:26 +0000 (01:29 +0200)]
Brown paper bag, please

Gbp-Dch: Ignore

9 years agoMake sure we fixup the changelog trailer with newer devscripts
Guido Günther [Sun, 10 Aug 2014 23:00:05 +0000 (01:00 +0200)]
Make sure we fixup the changelog trailer with newer devscripts

We don't change any mainttrailer options if already given.

Thanks: James McCoy for the detailed explanation
Closes: #740566

10 years agoDocument changes and release 0.6.16 debian/0.6.16
Guido Günther [Mon, 28 Jul 2014 14:00:12 +0000 (16:00 +0200)]
Document changes and release 0.6.16

10 years agoRemove all other log handlers when capturing logs
Guido Günther [Mon, 28 Jul 2014 13:57:05 +0000 (15:57 +0200)]
Remove all other log handlers when capturing logs

This avoids spurious error messages during test runs.

10 years agolinkeList: turn the bug printouts to debug level
Guido Günther [Mon, 28 Jul 2014 13:35:01 +0000 (15:35 +0200)]
linkeList: turn the bug printouts to debug level

We don't take any action anyway so no need to confuse users.

10 years agoIntroduce git-buildpackage-rpm
Guido Günther [Thu, 24 Jul 2014 21:12:30 +0000 (23:12 +0200)]
Introduce git-buildpackage-rpm

Currently only including "gbp import-srpm"