Markus Lehtonen [Mon, 18 Jun 2012 13:20:39 +0000 (16:20 +0300)]
GitRepository: make get_commit_info() more robust
Now uses git-show instead of git-log. This way we get the file status
for merge commits, too. Also, use null-character as the field separator
which makes parsing more reliable. For example, should handle exotic
filenames/paths reliably, now.
Also, get_commit_info() now uses GitArgs and _git_inout() instead of the
deprecated _git_getoutput().
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Wed, 13 Jun 2012 15:17:19 +0000 (18:17 +0300)]
Added gbp/scripts/__init__.py to the -common package.
This change fixes this importing issue:
Traceback (most recent call last):
File "/usr/bin/gbs", line 318, in <module>
sys.exit(Gbs().main())
File "/usr/lib/python2.7/dist-packages/gitbuildsys/cmdln.py", line 257, in main
return self.cmd(args)
File "/usr/lib/python2.7/dist-packages/gitbuildsys/cmdln.py", line 280, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.7/dist-packages/gitbuildsys/cmdln.py", line 412, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.7/dist-packages/gitbuildsys/cmdln.py", line 1100, in _dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/bin/gbs", line 255, in do_remotebuild
from gitbuildsys import cmd_remotebuild as cmd
File "/usr/lib/python2.7/dist-packages/gitbuildsys/cmd_remotebuild.py", line 33, in <module>
from gbp.scripts.buildpackage_rpm import main as gbp_build
ImportError: No module named scripts.buildpackage_rpm
Change-Id: I7b9fdbc64dec065316847f671e1ac72ca996478c
Markus Lehtonen [Wed, 13 Jun 2012 10:27:58 +0000 (03:27 -0700)]
Merge "buildpackage-rpm: add --specfile option" into experimental-rpm
Ed Bartosh [Wed, 13 Jun 2012 09:14:20 +0000 (12:14 +0300)]
Fixed typo
Change-Id: I05430a237963fb41e8d8adc0ce11bbddb1c776fa
Zhang Qiang [Sat, 18 Feb 2012 08:21:56 +0000 (16:21 +0800)]
buildpackage-rpm: add --specfile option
This option ignores the packaging-dir option and uses the directory of
the given specfile as the packaging dir.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Wed, 13 Jun 2012 07:45:26 +0000 (10:45 +0300)]
Workarounded bug in rpm spec parsing. fixes #73
When spec has Patch: ... line it wrongly set patch number to MAXINT
instead of 0.
Change-Id: Ieb462f8068b98724a2035394b80514982168d3c8
Ed Bartosh [Mon, 11 Jun 2012 15:45:37 +0000 (18:45 +0300)]
GitRepository/_git_command: Removed description of non-existing
parameter cwd. epydoc complained about it and package build failed.
Change-Id: Ie2a67d9ce01e01c541378d1f6bd74e36f9745dba
Ed Bartosh [Wed, 6 Jun 2012 11:45:44 +0000 (14:45 +0300)]
GitRepository: Implemented status method
Change-Id: I2fef97a40f8cb04cc5a354df8211469e6d9f6eff
Markus Lehtonen [Mon, 11 Jun 2012 09:52:57 +0000 (02:52 -0700)]
Merge "Don't modify spec file when importing" into experimental-rpm
Markus Lehtonen [Mon, 11 Jun 2012 09:46:12 +0000 (02:46 -0700)]
Merge "GitRepository: raised gitRepositoryError instead of passing CommandExecFailed silently" into experimental-rpm
Ed Bartosh [Fri, 8 Jun 2012 11:09:35 +0000 (14:09 +0300)]
GitRepository: raised gitRepositoryError instead of passing CommandExecFailed silently
Change-Id: If11c69226ee4147a719b957baf4ae1c446d693d2
Markus Lehtonen [Mon, 11 Jun 2012 07:28:32 +0000 (10:28 +0300)]
Don't modify spec file when importing
Now GBP doesn't automatically add patch autoupdate markers anymore.
Change-Id: Ia40851d000c7ea3d576ce72d26a8dbb3c5d5dd77
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 8 Jun 2012 10:35:21 +0000 (03:35 -0700)]
Merge changes Id002bf1b,I45d84345 into experimental-rpm
* changes:
Packaging: fixed distribution of files
Fixed testcase for test_find_tag.
Ed Bartosh [Thu, 7 Jun 2012 07:54:54 +0000 (10:54 +0300)]
Packaging: fixed distribution of files
Change-Id: Id002bf1b3aa78578f8c46fbd0900556bf98f9f30
Ed Bartosh [Thu, 7 Jun 2012 08:49:59 +0000 (11:49 +0300)]
Fixed testcase for test_find_tag.
Change-Id: I45d84345e45a7ede7643364a5b21ab41e50ecc5d
Markus Lehtonen [Fri, 8 Jun 2012 09:23:04 +0000 (12:23 +0300)]
Revert "buildpackage_rpm: Changed default git-archive prefix to %{name}-%{version}"
It caused way more problems than it solved.
This reverts commit
59c6698a4a0c712069ff4c833ed85408a564aab5.
Change-Id: I6a2ec49042bc15aaddf3ae13ba5415d9f7498c69
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 8 Jun 2012 07:23:21 +0000 (00:23 -0700)]
Merge "extend git.get_commit_info to get commit file status" into experimental-rpm
Markus Lehtonen [Fri, 8 Jun 2012 06:25:19 +0000 (23:25 -0700)]
Merge "Add gbp-common as dep of gbp and gbp-rpm" into experimental-rpm
Zhang Qiang [Fri, 8 Jun 2012 01:31:13 +0000 (09:31 +0800)]
extend git.get_commit_info to get commit file status
Zhang Qiang [Thu, 7 Jun 2012 06:26:07 +0000 (14:26 +0800)]
Add gbp-common as dep of gbp and gbp-rpm
Markus Lehtonen [Wed, 6 Jun 2012 12:12:54 +0000 (15:12 +0300)]
import-srpm: fix bug in importing unpacked sources
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Tue, 5 Jun 2012 11:59:22 +0000 (14:59 +0300)]
Repository.find_tag: Changed call of deprecated _git_getoutput to _git_inout
Change-Id: Idd80a44c3101b08481845fc6ad2a536885006ae5
Ed Bartosh [Tue, 5 Jun 2012 11:39:40 +0000 (14:39 +0300)]
Fixed typo in method name
Change-Id: Ief983850b94b2513d876c02dcf410a2867b16c90
Markus Lehtonen [Wed, 30 May 2012 14:50:35 +0000 (17:50 +0300)]
import-srpm: always move packaging file to packaging dir
Fixes a problem where packaging files were not moved to packaging dir
under certain circumstances.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Change-Id: I7b42e63007c00c79f47e75cac0ad81606b49271e
Markus Lehtonen [Wed, 30 May 2012 10:30:29 +0000 (13:30 +0300)]
rpm helpers: catch rpm exception in spec init
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Change-Id: I3a78bc6c1b9977bd7e489230c0d9f5b7484cc80a
Markus Lehtonen [Tue, 5 Jun 2012 01:19:03 +0000 (09:19 +0800)]
import-srpm: don't assume that source0 is orig_tarball
when importing unpacked sources.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Zhang Qiang [Fri, 1 Jun 2012 11:46:09 +0000 (19:46 +0800)]
fix typo issue
Markus Lehtonen [Thu, 31 May 2012 09:55:52 +0000 (02:55 -0700)]
Merge changes I69850a3f,Ib0676db9 into experimental-rpm
* changes:
Implemented support of .tgz original tarball extension
Reimplemented rfc822 date parsing without using dateutil to get rid of dependency to dateutil
Zhang Qiang [Thu, 31 May 2012 08:02:55 +0000 (16:02 +0800)]
Using base name of source file in spec
As some sources are url style, so basename should be extraced to
be used.
Ed Bartosh [Wed, 30 May 2012 09:49:00 +0000 (12:49 +0300)]
Implemented support of .tgz original tarball extension
Change-Id: I69850a3f3684f5579a45144c292dc619a3116a45
Ed Bartosh [Wed, 30 May 2012 06:02:55 +0000 (09:02 +0300)]
Reimplemented rfc822 date parsing without using dateutil to get rid of
dependency to dateutil
Change-Id: Ib0676db9bfa535b25f5c9f9a69e79c001013527f
Ed Bartosh [Tue, 29 May 2012 08:18:12 +0000 (11:18 +0300)]
guess_comp_type: return empty string for orig_file with no compression
Change-Id: Ic123febfc9298ce7e6b3ea0d880404744d4b5dd6
Guan Junchun [Tue, 29 May 2012 05:18:49 +0000 (13:18 +0800)]
fix spec file multi orig file issue
Ed Bartosh [Mon, 28 May 2012 11:22:21 +0000 (14:22 +0300)]
buildpackage_rpm: Changed default git-archive prefix to %{name}-%{version}
Change-Id: I4f306e11204e1b2d8d909471273469fc5374d181
Ed Bartosh [Fri, 25 May 2012 07:26:14 +0000 (10:26 +0300)]
Updated spec to allow the same content for rpm and deb packages
Change-Id: I4c2b482c5f3fbe1c3abac9f41f0f5155c90803c8
Ed Bartosh [Thu, 24 May 2012 13:16:12 +0000 (16:16 +0300)]
Splitted Debian package
Change-Id: Ib463286eca69f4b21432fa301e702044c9b008c4
Ed Bartosh [Thu, 24 May 2012 07:50:57 +0000 (10:50 +0300)]
Moved spec to packaging/
Change-Id: If6128137ead42fe8c75f692d484e9e3c4534b62c
Ed Bartosh [Fri, 18 May 2012 06:56:59 +0000 (09:56 +0300)]
Fixed package build for Ubuntu Oneiric
Change-Id: Ic2632351c7a07f75c5f1e7c1c405dcb9dd5ba85f
Ed Bartosh [Mon, 14 May 2012 08:41:05 +0000 (11:41 +0300)]
Initialized variable formt
Change-Id: I5deaf7671ded98c8011f450bd74730b58bb0d204
Ed Bartosh [Mon, 14 May 2012 08:39:44 +0000 (11:39 +0300)]
guess_comp: Raise an exception if can't determine compression type
Change-Id: I0e28b97da8cf7bd6a59ce043e86b791e9ae17e3f
Ed Bartosh [Fri, 11 May 2012 11:57:14 +0000 (14:57 +0300)]
git_archive_single: Changed directory before running git-archive if needed
Change-Id: If585fd6169f7fd7b3473f28beb25adfbe20b7cc4
Ed Bartosh [Wed, 9 May 2012 15:46:27 +0000 (18:46 +0300)]
Implemented zip archive support
Change-Id: I96361b297c6583cdacddd4f4e99959c1b092ae2d
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Wed, 9 May 2012 14:18:10 +0000 (17:18 +0300)]
rpm: Added .lzma to the list of supported compression types for original tarballs
Change-Id: Ia5694aae75f8d2366f624ec0ab8eb1e2742590a3
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Ed Bartosh [Thu, 3 May 2012 14:17:02 +0000 (17:17 +0300)]
rpm: Added .xz to the list of supported compression types for original tarballs
Change-Id: I36ff686e71a6033c9db3b35514429987bf0f68a5
Ed Bartosh [Thu, 3 May 2012 14:18:10 +0000 (17:18 +0300)]
Fixed guessing of compressor type
Change-Id: I29f1854316fb3f4d9429f1d0627435c64a6ad5d1
Ed Bartosh [Tue, 8 May 2012 14:58:07 +0000 (17:58 +0300)]
Added build dependency to epydoc, python-coverage and python-nose
Change-Id: Id92631db142321ff81b246fca6588b90f5568143
Ed Bartosh [Tue, 8 May 2012 14:36:05 +0000 (17:36 +0300)]
Added symlink packaging/git-buildpackage.spec
Ed Bartosh [Mon, 30 Apr 2012 18:24:35 +0000 (21:24 +0300)]
GitRepository/rev_parse: introduced new parameter opt_args
Ed Bartosh [Mon, 30 Apr 2012 18:12:59 +0000 (21:12 +0300)]
GitRepository/get_commit_info: Added timestamp to the info
Ed Bartosh [Mon, 30 Apr 2012 06:22:40 +0000 (09:22 +0300)]
git_archive: Fixed getting original file name from spec
Ed Bartosh [Fri, 27 Apr 2012 16:11:01 +0000 (19:11 +0300)]
Fixed crash on Ubuntu "TypeError: cannot create rpm.spec instances"
Ed Bartosh [Thu, 26 Apr 2012 00:56:31 +0000 (03:56 +0300)]
Fixed crash on Ubuntu "TypeError: an integer is required"
Ed Bartosh [Mon, 23 Apr 2012 11:54:05 +0000 (14:54 +0300)]
Fixed crash on Ubuntu with "type rpm.hdr is not an acceptable base type"
Ed Bartosh [Fri, 20 Apr 2012 02:46:04 +0000 (05:46 +0300)]
Implemented importing from unpacked srpm
Ed Bartosh [Fri, 20 Apr 2012 02:06:56 +0000 (05:06 +0300)]
rpm: Implemented parse_spec function
Ed Bartosh [Thu, 19 Apr 2012 10:21:10 +0000 (13:21 +0300)]
Added sources when parsing spec
Ed Bartosh [Thu, 19 Apr 2012 09:50:59 +0000 (12:50 +0300)]
buildpackage_rpm: Used basename instead of filename
Ed Bartosh [Wed, 18 Apr 2012 08:34:42 +0000 (11:34 +0300)]
supported symlinked specs
Markus Lehtonen [Mon, 23 Apr 2012 12:29:53 +0000 (15:29 +0300)]
Add rpm packaging files
Markus Lehtonen [Thu, 12 Apr 2012 13:37:37 +0000 (16:37 +0300)]
README: mention RPM support
Markus Lehtonen [Wed, 22 Feb 2012 10:49:22 +0000 (12:49 +0200)]
docs: revamp RPM docs
Markus Lehtonen [Wed, 22 Feb 2012 10:48:57 +0000 (12:48 +0200)]
docs: add initial RPM documentation
Markus Lehtonen [Fri, 13 Jan 2012 13:01:28 +0000 (15:01 +0200)]
TODO: add rpm todo
Markus Lehtonen [Thu, 12 Jan 2012 13:45:06 +0000 (15:45 +0200)]
rpm: add 'vendor' config option
Intended to represent the distribution vendor (e.g. 'Debian'). This can
be used in tag and branch name formatting.
Markus Lehtonen [Thu, 12 Jan 2012 13:44:43 +0000 (15:44 +0200)]
gbp-pq-rpm: add 'export-rev' option
This option allows generating patches from any git tree-ish (instead of
the default that is HEAD of patch-queue branch).
Markus Lehtonen [Thu, 12 Jan 2012 13:40:18 +0000 (15:40 +0200)]
rpm: add rpm-specific example config file
Markus Lehtonen [Thu, 12 Jan 2012 13:39:55 +0000 (15:39 +0200)]
Introduce git-import-orig-rpm tool
Initial version of the git-import-orig-rpm: version of git-import-orig
intended for maintaining rpm packages.
Markus Lehtonen [Thu, 12 Jan 2012 13:39:29 +0000 (15:39 +0200)]
rpm: only remove patches inside autoupdate markers
in the spec file, if autoupdate is used.
Markus Lehtonen [Thu, 12 Jan 2012 13:39:12 +0000 (15:39 +0200)]
Introduce git-buildpackage-rpm tool
Initial version of git-buildpackage-rpm: git-buildpackage tool for rpms.
Also adds some new options to config.py that are exclusively used in
this tool.
Markus Lehtonen [Thu, 12 Jan 2012 13:38:29 +0000 (15:38 +0200)]
Introduce gbp-pq-rpm tool
Initial version of gbp-pq-rpm: a tool for managing patch queues for rpm
packages.
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.
Unit tests: created a separate method in TestHelp for RPM-specific
commands.
Markus Lehtonen [Thu, 12 Jan 2012 13:36:10 +0000 (15:36 +0200)]
Add 'packaging-tag' option to config.py
This is the counterpart of 'debian-tag' (basically identical to that) to
not confuse rpm maintainers.
Markus Lehtonen [Thu, 12 Jan 2012 13:35:49 +0000 (15:35 +0200)]
Rename internal var debian_tag -> packaging_tag
This is done in sake of more general purpose naming, intended for
enabling rpm support: to allow logical naming for rpm and to
share as much code between debian and rpm tools as possible.
Markus Lehtonen [Thu, 12 Jan 2012 13:35:37 +0000 (15:35 +0200)]
Add 'packaging-branch' cmdline option
This is the counterpart of 'debian-branch' (basically identical to that)
to not confuse rpm maintainers.
Also, adds this option to gbp-clone and gbp-pull commands (as an
alternative to the 'debian-branch option), which are usable for RPM in
their current form.
Markus Lehtonen [Thu, 12 Jan 2012 13:35:20 +0000 (15:35 +0200)]
Rename internal var debian_branch -> packaging_branch
This is done in sake of more general purpose naming, intended for
enabling rpm support.
Markus Lehtonen [Thu, 12 Jan 2012 13:35:05 +0000 (15:35 +0200)]
Add 'packaging-dir' option to config.py
Needed by the upcoming rpm tools.
Markus Lehtonen [Thu, 12 Jan 2012 13:26:55 +0000 (15:26 +0200)]
gbp-pull: two modes for --force
The 'force' option now has two possible values:
'merge': upstream branch is merged, even if fast-forward is not
possible.
'clean': check out a clean copy from the upstream if fast-forward is not
possible (i.e. no merge). Local changes are lost in this case.
Markus Lehtonen [Thu, 12 Jan 2012 13:25:57 +0000 (15:25 +0200)]
gbp-pull: similar update strategy for all branches
Treat non-checked-out branches similarly to the current branch when
forcing update. That is, do git merge, instead of just setting the ref.
Also, renames fast_forward_branch() to update_branch() to better match
the functionality.
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.
Markus Lehtonen [Mon, 13 Feb 2012 13:01:22 +0000 (15:01 +0200)]
config: add rpm-specific option parser class
Adds a new GbpOptionParserRpm class for handling rpm-specific options.
Markus Lehtonen [Thu, 12 Jan 2012 13:29:03 +0000 (15:29 +0200)]
Introduce rpm helpers
Preparation for RPM support.
Markus Lehtonen [Thu, 12 Jan 2012 13:24:42 +0000 (15:24 +0200)]
import-orig: refactor args of symlink_orig()
Add call arg to define the (formerly hard-coded) tarball basename in
symlink_orig(). In other words, this controls the name by which the
tarball is stored in pristine-tar branch.
This change makes symlink_orig() re-usable in the upcoming RPM-tools.
Markus Lehtonen [Wed, 8 Feb 2012 12:54:59 +0000 (14:54 +0200)]
Refactor deb helpers: move PristineTar class
to pkg base module. Also introduces a derived DebianPristineTar class
that contains Debian-specific functionality.
This refactor is preparation to the upcoming rpm support.
Markus Lehtonen [Thu, 5 Apr 2012 11:51:18 +0000 (14:51 +0300)]
GitRepository: fix merge() for older git versions
Adds a new method for getting the version of git suite (i.e. git utils)
installed on the OS running gbp.
Utilize the new function in GitRepository.merge() to not give
edit/no-edit option for older versions of git-merge, that don't support
it. Fixes a regression (with git-version < 1.7.8) caused by commit
f3aa87fa0361a.
Guido Günther [Sun, 6 May 2012 20:54:23 +0000 (22:54 +0200)]
docs: compolete git-dch synopsis
Guido Günther [Fri, 4 May 2012 16:23:12 +0000 (18:23 +0200)]
GitRepository.format_patches: allow to set threading format
and disable it by default.
Markus Lehtonen [Wed, 8 Feb 2012 12:42:00 +0000 (14:42 +0200)]
Refactor deb helpers: move UpstreamSource class
to pkg base module. This refactor is preparation to the upcoming rpm
support.
Markus Lehtonen [Wed, 8 Feb 2012 12:26:24 +0000 (14:26 +0200)]
Refactor deb helpers: move build_tarball_name()
from UpstreamSource class to DebianPkgPolicy.
Markus Lehtonen [Thu, 12 Jan 2012 13:43:32 +0000 (15:43 +0200)]
Refactor deb helpers: introduce PkgPolicy class
Create a new 'pkg' basemodule, intended to be re-used by the upcoming
rpm package helpers. Move some deb functionality to a new pkg.PkgPolicy
class, to be used as a base for different package types. Introduces
Deb-specific deb.DebianPkgPolicy.
Guido Günther [Wed, 18 Apr 2012 22:24:39 +0000 (00:24 +0200)]
Document changes and release 0.6.0~git20120419
Matthijs Kooijman [Tue, 17 Apr 2012 20:17:20 +0000 (22:17 +0200)]
Bug#669145: [PATCH] Add git-dch --commit and --commit-msg options
Closes: #669145
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Markus Lehtonen [Thu, 12 Jan 2012 13:44:23 +0000 (15:44 +0200)]
Refactor git-import-orig as preparation for rpm support
Separate some functions of git-import-orig into a baselib, intended to
be re-used by the upcoming rpm variant of the tool.
Markus Lehtonen [Thu, 12 Jan 2012 13:24:42 +0000 (15:24 +0200)]
import-orig: refactor args of ask_package_* functions
Makes ask_package_name() and ask_package_version() more generic and
re-usable in the upcoming RPM-tools.
Markus Lehtonen [Thu, 12 Jan 2012 13:42:42 +0000 (15:42 +0200)]
Refactor git-buildpackage as preparation for rpm support
Separate some functions of git-buildpackage into a basemodule, intended
to be re-used by the upcoming rpm variant of the tool.
Markus Lehtonen [Thu, 12 Jan 2012 13:41:46 +0000 (15:41 +0200)]
Refactor gbp-pq as preparation for rpm support
Separate some functions of gbp-pq into a basemodule, intended to be
re-used by the upcoming rpm variant of the tool.
Also, introduces a new python subpackage gbp.scripts.common to be used
for the re-usable parts of the scripts in the refactoring work.
Markus Lehtonen [Thu, 12 Apr 2012 11:28:59 +0000 (14:28 +0300)]
docs: add some missing tags to sgml files
Matthijs Kooijman [Tue, 17 Apr 2012 20:41:48 +0000 (22:41 +0200)]
Git-Dch: Full in commit messages
This new tag makes git-dch use the full commit message when generating
the Debian changelog file, even when --full is not given.
Closes: #669159
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Guido Günther [Wed, 18 Apr 2012 06:14:40 +0000 (08:14 +0200)]
Make building with DEB_BUILD_OPTIONS=nocheck skip all tests
heavily based on a patch by Matthijs Kooijman
Guido Günther [Sun, 15 Apr 2012 17:06:10 +0000 (19:06 +0200)]
Document changes and release 0.6.0~git20120415
Guido Günther [Sun, 15 Apr 2012 17:04:48 +0000 (19:04 +0200)]
Ignore locale when checking for a clean repository
Closes: #668896