tools/git-buildpackage.git
8 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>
8 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>
8 years agoDocument changes and release 0.6.22
Guido Günther [Wed, 29 Oct 2014 06:47:29 +0000 (07:47 +0100)]
Document changes and release 0.6.22

Conflicts:
debian/changelog

8 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.

8 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

Conflicts:
debian/changelog

8 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

Conflicts:
README

8 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

8 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

8 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

8 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

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

Conflicts:
debian/changelog

8 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.

Conflicts:
gbp/scripts/pq.py

8 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

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

8 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

Conflicts:
gbp/config.py

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

Conflicts:
debian/changelog

8 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

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

Conflicts:
debian/changelog

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

Closes: #760091

8 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

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

Conflicts:
debian/changelog

8 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.

8 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

8 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

8 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

8 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.

Conflicts:
debian/git-buildpackage.install
gbp/scripts/import_orig.py

8 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>
Conflicts:
gbp/scripts/buildpackage.py

8 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

8 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

8 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

8 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

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

Conflicts:
debian/changelog

8 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.

8 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.

8 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"

Conflicts:
debian/control
debian/git-buildpackage-rpm.install
debian/git-buildpackage.install

8 years agoimport-srpm: add 'vendor' config option
Markus Lehtonen [Thu, 12 Jan 2012 13:45:06 +0000 (15:45 +0200)]
import-srpm: add 'vendor' config option

Intended to represent the distribution vendor (e.g. 'Debian').
Currently, this can be used in tag format strings.

NOTE: the vendor name is converted to lowercase when used in tag names.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Conflicts:
gbp/config.py

8 years agoPass --no-pristine-tar to SRPM compnent tests
Guido Günther [Thu, 24 Jul 2014 19:37:58 +0000 (21:37 +0200)]
Pass --no-pristine-tar to SRPM compnent tests

to avoid pristine-tar showing up in the matched branches

Conflicts:
tests/component/rpm/test_import_srpm.py

8 years agoIntroduce git-import-srpm tool
Markus Lehtonen [Thu, 12 Jan 2012 13:37:49 +0000 (15:37 +0200)]
Introduce git-import-srpm tool

Initial version of the git-import-srpm: a tool for importing source
rpms.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Conflicts:
.gitmodules
gbp/config.py
gbp/scripts/import_srpm.py
tests/01_test_help.py
tests/component/rpm/__init__.py
tests/component/rpm/data
tests/component/rpm/test_import_srpm.py

8 years agoMerge commit '1a8e6d12cc94d2b40324fe8f99de012cf2cf5913' into release-201501
Jun Wang [Tue, 26 Jan 2016 13:57:31 +0000 (21:57 +0800)]
Merge commit '1a8e6d12cc94d2b40324fe8f99de012cf2cf5913' into release-201501

8 years agoMerge from devel dbfc6276c4aa50b79f1cf27cfc24badc0b18da8f
Jun Wang [Tue, 26 Jan 2016 13:55:12 +0000 (21:55 +0800)]
Merge from devel dbfc6276c4aa50b79f1cf27cfc24badc0b18da8f

8 years agoMerge from devel e374ee5a2381ba30056c1fa33bdb515d99ec704e
Jun Wang [Tue, 26 Jan 2016 11:45:57 +0000 (19:45 +0800)]
Merge from devel e374ee5a2381ba30056c1fa33bdb515d99ec704e

8 years agoMerge to 7f6b72e039efa5e2c3517b9336f9b29b4cb65c71
Jun Wang [Tue, 26 Jan 2016 11:25:42 +0000 (19:25 +0800)]
Merge to 7f6b72e039efa5e2c3517b9336f9b29b4cb65c71

8 years agoMerge to 36c8e5cd00fd600be63160b0ef9427a70ab45870
Jun Wang [Tue, 26 Jan 2016 11:20:11 +0000 (19:20 +0800)]
Merge to 36c8e5cd00fd600be63160b0ef9427a70ab45870

8 years agomerge to 0b1fc0d602d75da30748bbc979fed48aab805503
Jun Wang [Tue, 26 Jan 2016 11:11:52 +0000 (19:11 +0800)]
merge to 0b1fc0d602d75da30748bbc979fed48aab805503

8 years agomerger to 655a6f0528afcebe1b4493abe865ee568c505bbf
Jun Wang [Tue, 26 Jan 2016 11:09:29 +0000 (19:09 +0800)]
merger to 655a6f0528afcebe1b4493abe865ee568c505bbf

9 years agomodify .gitmodule
shuai.fu [Thu, 12 Nov 2015 02:03:20 +0000 (10:03 +0800)]
modify .gitmodule
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Change-Id: I93c6a4eccb8d62b0a164c13902726cf3c92ac039

9 years agoUpgrade version to 0.6.25 release-test-20150810
Rong Jinhui [Tue, 4 Aug 2015 01:03:42 +0000 (09:03 +0800)]
Upgrade version to 0.6.25

Change-Id: I1d62032a98e91130c35ceccff576262709d806b3
Signed-off-by: Rong Jinhui <jinhui.rong@samsung.com>
10 years agoTizen release 0.6.15-20140828 debian/0.6.25 tizen/0.6.15-20140828
Markus Lehtonen [Thu, 28 Aug 2014 12:02:28 +0000 (12:02 +0000)]
Tizen release 0.6.15-20140828

Change-Id: Ida5b65020a0e9f566aef3d86f5536c7581fdbd01
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agorpm packaging: use macro for python binary
Li Jinjing [Wed, 20 Aug 2014 06:25:02 +0000 (14:25 +0800)]
rpm packaging: use macro for python binary

For fedora distro, when building git-buildpackage rpm packages in the buildroot,
/bin/python is called to do python setup.py actions during rpmbuild,which leads
to /bin/python is taken as requirement of git-buildpackage-rpm-0.6.15-0.noarch.rpm
automatically, resulting in:

Install gbs with dnf command in fedora distro will raise error:
nothing provides /bin/python needed by git-buildpackage-rpm-0.6.12-59.1.noarch

Fixes: DEVT-197

Change-Id: I30169a506d7f92aed759124c40beb2803c196218
Signed-off-by: Li Jinjing <jinjingx.li@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd PKGBUILD to support arch linux
Junchun Guan [Wed, 16 Jul 2014 03:28:29 +0000 (11:28 +0800)]
Add PKGBUILD to support arch linux

Three split packages: git-buildpackage-{common,rpm,doc}

Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
10 years agorpm tests: add unit tests for buildpackage-rpm
Markus Lehtonen [Fri, 18 Jul 2014 13:18:58 +0000 (16:18 +0300)]
rpm tests: add unit tests for buildpackage-rpm

Change-Id: If8a5cce2d43a8dffed6999059a84b3f6040eebdd
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoMake pychecker happy
Guido Günther [Thu, 24 Jul 2014 21:13:03 +0000 (23:13 +0200)]
Make pychecker happy

We don't use the class variable anywhere

10 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>
Conflicts:
gbp/pkg/__init__.py

10 years agoChange UpstreamSource to have PkgPolicy
Markus Lehtonen [Mon, 9 Jul 2012 12:17:24 +0000 (15:17 +0300)]
Change UpstreamSource to have PkgPolicy

The UpstreamSource class now gets a PkgPolicy in it's initialization.
Also, introduces new DebiaUpstreamSource class which is taken in use in
the scripts.

The PkgPolicy is not yet used for anything in UpstreamSource.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoUpstreamSource.guess_version: don't check for directories
Markus Lehtonen [Mon, 26 Aug 2013 13:47:57 +0000 (16:47 +0300)]
UpstreamSource.guess_version: don't check for directories

Directories are not recognized anyway, if guess_version() is called for
non-existent sources. And, parse_archive_filename() works fine for
directory names, too.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoUpstreamSource/guess_version: detect more compression formats
Markus Lehtonen [Thu, 27 Sep 2012 07:24:28 +0000 (10:24 +0300)]
UpstreamSource/guess_version: detect more compression formats

By utilizing the parse_archive_filename() function that detects e.g.
"alias suffixes" such as 'tgz'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoFix typos
Guido Günther [Thu, 24 Jul 2014 17:43:25 +0000 (19:43 +0200)]
Fix typos

10 years agoMove get_compression() out of pkg.PkgPolicy class
Markus Lehtonen [Tue, 15 May 2012 07:02:40 +0000 (10:02 +0300)]
Move get_compression() out of pkg.PkgPolicy class

Renames the function to parse_archive_filename() and changes it's
return values. Filename parsing is merely generic functionality, not
tied to any packaging policy.

The function now returns the base name of the file (that is, filename
without, archive and compression extensions), archive format and
compression method. Adds supported archive formats 'tar' and 'zip' and
file extension aliases, e.g. 'tgz'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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

Change-Id: Ic9b1d4fefaf1062b752c55e372b3644630747d36
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopackaging: depend/recommend rpmbuild
Markus Lehtonen [Fri, 18 Jul 2014 14:27:03 +0000 (17:27 +0300)]
packaging: depend/recommend rpmbuild

Change-Id: Ifd5402f93a078eb97ff504eab1dbbf1e2d7c6ca1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: fix one error message
Markus Lehtonen [Wed, 16 Jul 2014 19:13:29 +0000 (22:13 +0300)]
buildpackage-rpm: fix one error message

Change-Id: I1985f1c4dc208e1b9c18d0b4dc570d1c73c4c0e0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: drop unneeded exception
Markus Lehtonen [Wed, 16 Jul 2014 14:16:48 +0000 (17:16 +0300)]
buildpackage-rpm: drop unneeded exception

We will never get here as parse_spec() always returns GbpError.

Change-Id: I3ccf9826caeace00c9f1d136e51e64833a157f50
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: handle invalid keys in orig prefix
Markus Lehtonen [Wed, 16 Jul 2014 14:15:44 +0000 (17:15 +0300)]
buildpackage-rpm: handle invalid keys in orig prefix

Gracefully handle invalid keys in the --git-orig-prefix format string.

Change-Id: I1948ed7b34cdd806a0154d8cf354c5095388988f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: minor refactor
Markus Lehtonen [Wed, 16 Jul 2014 14:15:03 +0000 (17:15 +0300)]
buildpackage-rpm: minor refactor

Change-Id: Ibe43e3e948cb8854dadfc03449854ef044370237
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: get rid of prepare_export_dir()
Markus Lehtonen [Tue, 15 Jul 2014 10:45:06 +0000 (13:45 +0300)]
buildpackage-rpm: get rid of prepare_export_dir()

No need to mangle the export directory.

Change-Id: I686cb9d23ea9e95206cdd1c55627b3ca14e83dad
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: remove some outdated/unnecessary exception handling
Markus Lehtonen [Mon, 14 Jul 2014 07:41:36 +0000 (10:41 +0300)]
buildpackage-rpm: remove some outdated/unnecessary exception handling

Change-Id: I01b75b3ff1ba7f483cb6c9b5648b11dde858ed80
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: add '--git-native' option
Markus Lehtonen [Tue, 15 Jul 2014 11:54:44 +0000 (14:54 +0300)]
buildpackage-rpm: add '--git-native' option

Can be used to explicitly configure a package as native or non-native.
Default behavior is still to guess based on the existence of upstream
branch.

Change-Id: I09c3797fd3d88285ee1e920f4c40e3b22c06916a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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.

Change-Id: I7d876f01d1855a7b6264f6298a16313045dc6873
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: remove some unused variables
Markus Lehtonen [Mon, 21 Jul 2014 12:57:57 +0000 (12:57 +0000)]
buildpackage-rpm: remove some unused variables

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: add missing docstrings
Markus Lehtonen [Mon, 21 Jul 2014 12:39:12 +0000 (12:39 +0000)]
buildpackage-rpm: add missing docstrings

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: remove unused imports
Markus Lehtonen [Mon, 21 Jul 2014 12:29:36 +0000 (12:29 +0000)]
buildpackage-rpm: remove unused imports

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopackaging: recommend/require zipmerge
Markus Lehtonen [Tue, 15 Jul 2014 05:54:48 +0000 (08:54 +0300)]
packaging: recommend/require zipmerge

Needed by CatenateZipArchive().

Change-Id: I8f25d9da418414bbcc2eff7797b4f57ee5c69e1f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agorpm-packaging: recommend/require unzip
Markus Lehtonen [Tue, 15 Jul 2014 05:46:41 +0000 (08:46 +0300)]
rpm-packaging: recommend/require unzip

Unzip is needed for handling zipped upstream sources.

Change-Id: I21bb57ad96edece7041d209b1f8264e6ec8465de
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agorpm tests: update component test data
Markus Lehtonen [Fri, 18 Jul 2014 12:48:29 +0000 (15:48 +0300)]
rpm tests: update component test data

Adds pq/devel branch and .gitignore file to gbp-test package.

Change-Id: Ia6dcbe875433bba00559bd65d9547a8b43e15e97
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agorpm tests: remove RepoManifest.add_project()
Markus Lehtonen [Tue, 10 Jun 2014 13:20:02 +0000 (16:20 +0300)]
rpm tests: remove RepoManifest.add_project()

This functionality is moved to the rpm testdata submodule.

Change-Id: I0824dbabe84fa75e1053c2508cc86d894dc295e6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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()

Change-Id: I01a421921c8783864d2a5c06d3299fc1ec5d13eb
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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.

Change-Id: I4c8386dfd6f016f926f2eb70b953b19095d585c2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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. Now, importing
gbp.* modules won't force-setup logging.

Change-Id: I3e9cfe27c67cdd74c32ceba5dad786cc694ad7b6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: remove too general exception catching
Markus Lehtonen [Fri, 11 Jul 2014 12:41:45 +0000 (15:41 +0300)]
buildpackage-rpm: remove too general exception catching

There should be no reason to catch general Exception here.

Change-Id: I1857bf7010365cc6044ff2783eda55dda35e6507
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: don't crash on invalid vcs format strings
Markus Lehtonen [Fri, 11 Jul 2014 12:40:59 +0000 (15:40 +0300)]
buildpackage-rpm: don't crash on invalid vcs format strings

Change-Id: I307c82600b0e1336e54016c95cac6ea955adc337
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: add --git-no-build option
Markus Lehtonen [Fri, 11 Jul 2014 12:23:19 +0000 (15:23 +0300)]
buildpackage-rpm: add --git-no-build option

Replaces and deprecates --git-export-only. The new option name is way
better in line with the other option names.

Change-Id: If54edf46eccaad4449ffe6b895b4958395e55c2e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: document common options in one place
Markus Lehtonen [Wed, 21 May 2014 07:24:21 +0000 (10:24 +0300)]
docs: document common options in one place

Move the documentation of command line options common to all tools into
one file. This unifies the manpage documentation and should make its
maintenance easier. Also, this change adds missing options to several
manpages.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: cosmetic reformat of git-dch manpage sgml source
Markus Lehtonen [Fri, 9 May 2014 11:40:25 +0000 (14:40 +0300)]
docs: cosmetic reformat of git-dch manpage sgml source

Makes the sgml source more readable. Fix indentation, tab to space, wrap
lines.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: cosmetic reformat of pq manpage sgml source
Markus Lehtonen [Fri, 9 May 2014 11:40:25 +0000 (14:40 +0300)]
docs: cosmetic reformat of pq manpage sgml source

Makes the sgml source more readable. Fix indentation, tab to space, wrap
lines.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: cosmetic reformat of import-dsc manpage sgml source
Markus Lehtonen [Fri, 9 May 2014 11:40:25 +0000 (14:40 +0300)]
docs: cosmetic reformat of import-dsc manpage sgml source

Makes the sgml source more readable. Fix indentation, tab to space, wrap
lines.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: cosmetic reformat of import-orig manpage sgml source
Markus Lehtonen [Fri, 9 May 2014 11:40:25 +0000 (14:40 +0300)]
docs: cosmetic reformat of import-orig manpage sgml source

Makes the sgml source more readable. Fix indentation, tab to space, wrap
lines.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: change option argument names to uppercase in buildpackage man
Markus Lehtonen [Fri, 9 May 2014 12:04:20 +0000 (15:04 +0300)]
docs: change option argument names to uppercase in buildpackage man

For the sake of consistency.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: cosmetic reformat of buildpackage manpage sgml source
Markus Lehtonen [Fri, 9 May 2014 11:40:25 +0000 (14:40 +0300)]
docs: cosmetic reformat of buildpackage manpage sgml source

In order to make the sgml source more readable. Fix indentation, tab to
space, wrap lines.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage_rpm: always run cleaner hook
Markus Lehtonen [Mon, 30 Jun 2014 14:46:41 +0000 (17:46 +0300)]
buildpackage_rpm: always run cleaner hook

Change-Id: Ia13115e40a186e83c93cee3fe559005eb85858a3
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage_rpm: fix crash when running prebuild hook
Markus Lehtonen [Mon, 30 Jun 2014 14:12:48 +0000 (17:12 +0300)]
buildpackage_rpm: fix crash when running prebuild hook

GitRepository.git_dir is not callable.

Change-Id: Ibc2040b8a36e60a9499b29ea675caa7a8fc8c968
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests/testutils: add directories arg to ls_* functions
Markus Lehtonen [Fri, 27 Jun 2014 05:39:15 +0000 (08:39 +0300)]
tests/testutils: add directories arg to ls_* functions

With this you can exclude directories from the listing returned by the
ls_tar(), ls_zip() and ls_dir() functions.

Change-Id: I8d586489a277c227a7fb61801e0b774f11e7a67e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage_rpm: check submodules from the exported treeish
Markus Lehtonen [Fri, 27 Jun 2014 05:42:33 +0000 (08:42 +0300)]
buildpackage_rpm: check submodules from the exported treeish

And not from the current working copy.

Change-Id: I5320bd977073e7d69c02782a8a232b4a622553e1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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.

Change-Id: I27abd99f0416bd4300953d3c1bae2d99de3ab6c0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 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.

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

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

Change-Id: If23365cde15c2659aad039f19984a97968cd4545
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoimport-orig-rpm: download tarball into parent directory
Markus Lehtonen [Tue, 17 Jun 2014 08:08:38 +0000 (11:08 +0300)]
import-orig-rpm: download tarball into parent directory

Prevents dirtying of the current Git working directory.

Change-Id: I6eca70b647130a380ba67d5b90fc23354b3974ea
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: always create tarball for native packages
Markus Lehtonen [Fri, 13 Jun 2014 10:31:48 +0000 (13:31 +0300)]
buildpackage-rpm: always create tarball for native packages

If the package is native, always (re-)create the source tarball, even if
--git-no-create-orig is used. Not creating the tarball does not make
much sense (and most probably just causes problems and confusion): for
native packages there is no place for external tarball and no patches so
we need to always have the correct sources (i.e. the exported revision)
in the tarball.

Change-Id: I3d4a46150a017de499d19ec4ae168e6f642325bd
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage-rpm: fix exit code in case of GitRepositoryError
Markus Lehtonen [Thu, 12 Jun 2014 12:42:21 +0000 (15:42 +0300)]
buildpackage-rpm: fix exit code in case of GitRepositoryError

Change-Id: I0afa3d5b744a912c63af66f2add9eb68bdc48f5b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuildpackage: Also print tag name when tagging the Debian release
Guido Günther [Sat, 14 Jun 2014 09:55:17 +0000 (11:55 +0200)]
buildpackage: Also print tag name when tagging the Debian release

Based on a patch by Kamal Mostafa