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)
committerJun Wang <junbill.wang@samsung.com>
Wed, 27 Jan 2016 10:51:03 +0000 (18:51 +0800)
commit80f83e1f066f7b98701dc40f0f068363bd724422
tree05e5b26faac56349f226761e68ca0038e94f51fe
parent822c929448bf41341d9422d1afe065a70e12460e
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>
Conflicts:
tests/test_import_orig.py
tests/testutils.py
gbp/scripts/common/import_orig.py