Trying to keep UpstreamSource in consistent state so that unpacked and
packed sources are kept in sync.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Conflicts:
gbp/scripts/import_srpm.py
if source.is_tarball(): # the tarball was filtered on unpack
repacked.unpacked = source.unpacked
else: # otherwise unpack the generated tarball get a filtered tree
- repacked.unpack(unpack_dir, filters)
+ repacked.unpack(unpack_dir)
return repacked
options.filter_pristine_tar, None, tmpdir)
if not source.is_dir():
unpack_dir = tempfile.mkdtemp(prefix='unpack', dir=tmpdir)
- source.unpack(unpack_dir, options.filters)
+ source = source.unpack(unpack_dir, options.filters)
gbp.log.debug("Unpacked '%s' to '%s'" % (source.path, source.unpacked))
if orig_needs_repack(source, options):