import-orig: new function for filtering/re-packing sources
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 26 Aug 2013 07:22:00 +0000 (10:22 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 5 Jun 2014 11:20:04 +0000 (14:20 +0300)
commitc203f35e994dd686cc63e6217ad4b0151faacba5
tree003fbf382e5046bf711c7a369126af3e346f3f61
parent536df9ab1c21cdffa3f7c32eed0bbbbf38409f5b
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>
gbp/scripts/common/import_orig.py
tests/test_import_orig.py
tests/testutils.py