import-srpm: support for patch import
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 27 Jun 2012 15:12:01 +0000 (18:12 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:46:24 +0000 (14:46 +0200)
commiteccb50be944f62264415c534aa8d649d9011f6ae
tree10dfe34acb52237de4e9c185feadd8710403f8ae
parent14aef925c9eeb46c909d49b2271ef4c64eb747c8
import-srpm: support for patch import

Adds a new commandline option '--patch-import' for importing patches
into the source tree in packaging branch. When enabled, gbp applies and
commits all patches (not marked for manual maintenance) into the
packaging branch. If this succeeds, it also removes all imported patch
files from the packaging directory and the spec file.

Currently only supported for non-orphan-packaging.

This setting is true by default which should make more sense as the
developer wants to do code development in the packaging branch (if
he/she selects to use non-orphan packaging).

However, patch-import is force-disabled if in bare git repository. We
cannot support this, currently.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/config.py
gbp/scripts/import_srpm.py
tests/component/rpm/test_import_srpm.py