tools/git-buildpackage.git
12 years agoGitRepository: make get_commit_info() more robust 2.0alpha 2.0_alpha
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>
13 years agoAdded gbp/scripts/__init__.py to the -common package.
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

13 years agoMerge "buildpackage-rpm: add --specfile option" into experimental-rpm
Markus Lehtonen [Wed, 13 Jun 2012 10:27:58 +0000 (03:27 -0700)]
Merge "buildpackage-rpm: add --specfile option" into experimental-rpm

13 years agoFixed typo
Ed Bartosh [Wed, 13 Jun 2012 09:14:20 +0000 (12:14 +0300)]
Fixed typo

Change-Id: I05430a237963fb41e8d8adc0ce11bbddb1c776fa

13 years agobuildpackage-rpm: add --specfile option
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>
13 years agoWorkarounded bug in rpm spec parsing. fixes #73
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

13 years agoGitRepository/_git_command: Removed description of non-existing
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

13 years agoGitRepository: Implemented status method
Ed Bartosh [Wed, 6 Jun 2012 11:45:44 +0000 (14:45 +0300)]
GitRepository: Implemented status method

Change-Id: I2fef97a40f8cb04cc5a354df8211469e6d9f6eff

13 years agoMerge "Don't modify spec file when importing" into experimental-rpm
Markus Lehtonen [Mon, 11 Jun 2012 09:52:57 +0000 (02:52 -0700)]
Merge "Don't modify spec file when importing" into experimental-rpm

13 years agoMerge "GitRepository: raised gitRepositoryError instead of passing CommandExecFailed...
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

13 years agoGitRepository: raised gitRepositoryError instead of passing CommandExecFailed silently
Ed Bartosh [Fri, 8 Jun 2012 11:09:35 +0000 (14:09 +0300)]
GitRepository: raised gitRepositoryError instead of passing CommandExecFailed silently

Change-Id: If11c69226ee4147a719b957baf4ae1c446d693d2

13 years agoDon't modify spec file when importing
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>
13 years agoMerge changes Id002bf1b,I45d84345 into experimental-rpm
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.

13 years agoPackaging: fixed distribution of files
Ed Bartosh [Thu, 7 Jun 2012 07:54:54 +0000 (10:54 +0300)]
Packaging: fixed distribution of files

Change-Id: Id002bf1b3aa78578f8c46fbd0900556bf98f9f30

13 years agoFixed testcase for test_find_tag.
Ed Bartosh [Thu, 7 Jun 2012 08:49:59 +0000 (11:49 +0300)]
Fixed testcase for test_find_tag.

Change-Id: I45d84345e45a7ede7643364a5b21ab41e50ecc5d

13 years agoRevert "buildpackage_rpm: Changed default git-archive prefix to %{name}-%{version}"
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>
13 years agoMerge "extend git.get_commit_info to get commit file status" into experimental-rpm
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

13 years agoMerge "Add gbp-common as dep of gbp and gbp-rpm" 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

13 years agoextend git.get_commit_info to get commit file status
Zhang Qiang [Fri, 8 Jun 2012 01:31:13 +0000 (09:31 +0800)]
extend git.get_commit_info to get commit file status

13 years agoAdd gbp-common as dep of gbp and gbp-rpm
Zhang Qiang [Thu, 7 Jun 2012 06:26:07 +0000 (14:26 +0800)]
Add gbp-common as dep of gbp and gbp-rpm

13 years agoimport-srpm: fix bug in importing unpacked sources
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>
13 years agoRepository.find_tag: Changed call of deprecated _git_getoutput to _git_inout
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

13 years agoFixed typo in method name
Ed Bartosh [Tue, 5 Jun 2012 11:39:40 +0000 (14:39 +0300)]
Fixed typo in method name

Change-Id: Ief983850b94b2513d876c02dcf410a2867b16c90

13 years agoimport-srpm: always move packaging file to packaging dir
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

13 years agorpm helpers: catch rpm exception in spec init
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

13 years agoimport-srpm: don't assume that source0 is orig_tarball
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>
13 years agofix typo issue
Zhang Qiang [Fri, 1 Jun 2012 11:46:09 +0000 (19:46 +0800)]
fix typo issue

13 years agoMerge changes I69850a3f,Ib0676db9 into experimental-rpm
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

13 years agoUsing base name of source file in spec
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.

13 years agoImplemented support of .tgz original tarball extension
Ed Bartosh [Wed, 30 May 2012 09:49:00 +0000 (12:49 +0300)]
Implemented support of .tgz original tarball extension

Change-Id: I69850a3f3684f5579a45144c292dc619a3116a45

13 years agoReimplemented rfc822 date parsing without using dateutil to get rid of
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

13 years agoguess_comp_type: return empty string for orig_file with no compression
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

13 years agofix spec file multi orig file issue
Guan Junchun [Tue, 29 May 2012 05:18:49 +0000 (13:18 +0800)]
fix spec file multi orig file issue

13 years agobuildpackage_rpm: Changed default git-archive prefix to %{name}-%{version}
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

13 years agoUpdated spec to allow the same content for rpm and deb packages
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

13 years agoSplitted Debian package
Ed Bartosh [Thu, 24 May 2012 13:16:12 +0000 (16:16 +0300)]
Splitted Debian package

Change-Id: Ib463286eca69f4b21432fa301e702044c9b008c4

13 years agoMoved spec to packaging/
Ed Bartosh [Thu, 24 May 2012 07:50:57 +0000 (10:50 +0300)]
Moved spec to packaging/

Change-Id: If6128137ead42fe8c75f692d484e9e3c4534b62c

13 years agoFixed package build for Ubuntu Oneiric
Ed Bartosh [Fri, 18 May 2012 06:56:59 +0000 (09:56 +0300)]
Fixed package build for Ubuntu Oneiric

Change-Id: Ic2632351c7a07f75c5f1e7c1c405dcb9dd5ba85f

13 years agoInitialized variable formt
Ed Bartosh [Mon, 14 May 2012 08:41:05 +0000 (11:41 +0300)]
Initialized variable formt

Change-Id: I5deaf7671ded98c8011f450bd74730b58bb0d204

13 years agoguess_comp: Raise an exception if can't determine compression type
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

13 years agogit_archive_single: Changed directory before running git-archive if needed
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

13 years agoImplemented zip archive support
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>
13 years agorpm: Added .lzma to the list of supported compression types for original tarballs
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>
13 years agorpm: Added .xz to the list of supported compression types for original tarballs
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

13 years agoFixed guessing of compressor type
Ed Bartosh [Thu, 3 May 2012 14:18:10 +0000 (17:18 +0300)]
Fixed guessing of compressor type

Change-Id: I29f1854316fb3f4d9429f1d0627435c64a6ad5d1

13 years agoAdded build dependency to epydoc, python-coverage and python-nose
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

13 years agoAdded symlink packaging/git-buildpackage.spec
Ed Bartosh [Tue, 8 May 2012 14:36:05 +0000 (17:36 +0300)]
Added symlink packaging/git-buildpackage.spec

13 years agoGitRepository/rev_parse: introduced new parameter opt_args
Ed Bartosh [Mon, 30 Apr 2012 18:24:35 +0000 (21:24 +0300)]
GitRepository/rev_parse: introduced new parameter opt_args

13 years agoGitRepository/get_commit_info: Added timestamp to the info
Ed Bartosh [Mon, 30 Apr 2012 18:12:59 +0000 (21:12 +0300)]
GitRepository/get_commit_info: Added timestamp to the info

13 years agogit_archive: Fixed getting original file name from spec
Ed Bartosh [Mon, 30 Apr 2012 06:22:40 +0000 (09:22 +0300)]
git_archive: Fixed getting original file name from spec

13 years agoFixed crash on Ubuntu "TypeError: cannot create rpm.spec instances"
Ed Bartosh [Fri, 27 Apr 2012 16:11:01 +0000 (19:11 +0300)]
Fixed crash on Ubuntu "TypeError: cannot create rpm.spec instances"

13 years agoFixed crash on Ubuntu "TypeError: an integer is required"
Ed Bartosh [Thu, 26 Apr 2012 00:56:31 +0000 (03:56 +0300)]
Fixed crash on Ubuntu "TypeError: an integer is required"

13 years agoFixed crash on Ubuntu with "type rpm.hdr is not an acceptable base type"
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"

13 years agoImplemented importing from unpacked srpm
Ed Bartosh [Fri, 20 Apr 2012 02:46:04 +0000 (05:46 +0300)]
Implemented importing from unpacked srpm

13 years agorpm: Implemented parse_spec function
Ed Bartosh [Fri, 20 Apr 2012 02:06:56 +0000 (05:06 +0300)]
rpm: Implemented parse_spec function

13 years agoAdded sources when parsing spec
Ed Bartosh [Thu, 19 Apr 2012 10:21:10 +0000 (13:21 +0300)]
Added sources when parsing spec

13 years agobuildpackage_rpm: Used basename instead of filename
Ed Bartosh [Thu, 19 Apr 2012 09:50:59 +0000 (12:50 +0300)]
buildpackage_rpm: Used basename instead of filename

13 years agosupported symlinked specs
Ed Bartosh [Wed, 18 Apr 2012 08:34:42 +0000 (11:34 +0300)]
supported symlinked specs

13 years agoAdd rpm packaging files
Markus Lehtonen [Mon, 23 Apr 2012 12:29:53 +0000 (15:29 +0300)]
Add rpm packaging files

13 years agoREADME: mention RPM support
Markus Lehtonen [Thu, 12 Apr 2012 13:37:37 +0000 (16:37 +0300)]
README: mention RPM support

13 years agodocs: revamp RPM docs
Markus Lehtonen [Wed, 22 Feb 2012 10:49:22 +0000 (12:49 +0200)]
docs: revamp RPM docs

13 years agodocs: add initial RPM documentation
Markus Lehtonen [Wed, 22 Feb 2012 10:48:57 +0000 (12:48 +0200)]
docs: add initial RPM documentation

13 years agoTODO: add rpm todo
Markus Lehtonen [Fri, 13 Jan 2012 13:01:28 +0000 (15:01 +0200)]
TODO: add rpm todo

13 years agorpm: add 'vendor' config option
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.

13 years agogbp-pq-rpm: add 'export-rev' option
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).

13 years agorpm: add rpm-specific example config file
Markus Lehtonen [Thu, 12 Jan 2012 13:40:18 +0000 (15:40 +0200)]
rpm: add rpm-specific example config file

13 years agoIntroduce git-import-orig-rpm tool
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.

13 years agorpm: only remove patches inside autoupdate markers
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.

13 years agoIntroduce git-buildpackage-rpm tool
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.

13 years agoIntroduce gbp-pq-rpm 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.

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

Unit tests: created a separate method in TestHelp for RPM-specific
commands.

13 years agoAdd 'packaging-tag' option to config.py
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.

13 years agoRename internal var debian_tag -> packaging_tag
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.

13 years agoAdd 'packaging-branch' cmdline option
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.

13 years agoRename internal var debian_branch -> packaging_branch
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.

13 years agoAdd 'packaging-dir' option to config.py
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.

13 years agogbp-pull: two modes for --force
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.

13 years agogbp-pull: similar update strategy for all branches
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.

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

13 years agoconfig: add rpm-specific option parser class
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.

13 years agoIntroduce rpm helpers
Markus Lehtonen [Thu, 12 Jan 2012 13:29:03 +0000 (15:29 +0200)]
Introduce rpm helpers

Preparation for RPM support.

13 years agoimport-orig: refactor args of symlink_orig()
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.

13 years agoRefactor deb helpers: move PristineTar class
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.

13 years agoGitRepository: fix merge() for older git versions
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.

13 years agodocs: compolete git-dch synopsis
Guido Günther [Sun, 6 May 2012 20:54:23 +0000 (22:54 +0200)]
docs: compolete git-dch synopsis

13 years agoGitRepository.format_patches: allow to set threading format
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.

13 years agoRefactor deb helpers: move UpstreamSource class
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.

13 years agoRefactor deb helpers: move build_tarball_name()
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.

13 years agoRefactor deb helpers: introduce PkgPolicy class
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.

13 years agoDocument changes and release 0.6.0~git20120419 debian/0.6.0_git20120419
Guido Günther [Wed, 18 Apr 2012 22:24:39 +0000 (00:24 +0200)]
Document changes and release 0.6.0~git20120419

13 years agoBug#669145: [PATCH] Add git-dch --commit and --commit-msg options
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>
13 years agoRefactor git-import-orig as preparation for rpm support
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.

13 years agoimport-orig: refactor args of ask_package_* functions
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.

13 years agoRefactor git-buildpackage as preparation for rpm support
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.

13 years agoRefactor gbp-pq as preparation for rpm support
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.

13 years agodocs: add some missing tags to sgml files
Markus Lehtonen [Thu, 12 Apr 2012 11:28:59 +0000 (14:28 +0300)]
docs: add some missing tags to sgml files

13 years agoGit-Dch: Full in commit messages
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>
13 years agoMake building with DEB_BUILD_OPTIONS=nocheck skip all tests
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

13 years agoDocument changes and release 0.6.0~git20120415 debian/0.6.0_git20120415
Guido Günther [Sun, 15 Apr 2012 17:06:10 +0000 (19:06 +0200)]
Document changes and release 0.6.0~git20120415

13 years agoIgnore locale when checking for a clean repository
Guido Günther [Sun, 15 Apr 2012 17:04:48 +0000 (19:04 +0200)]
Ignore locale when checking for a clean repository

Closes: #668896