debrepack.py: add back "targz = targz.group(1)"

The commit efdcaec0ee80e87d3f783e8b5e5ce4949eccb471 missed oneline
"targz = targz.group(1)", when moving the code context to a function
tar_cmd(), which causes it takes a wrong parameter to untar "tar.xz".

Test Plan:

Pass: build-pkgs -c -a -b std,rt

Story: 2008846
Task: 45613

Reported-by: Jiping Ma <jiping.ma2@windriver.com>
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: Ie179143d27f289498302a935c459f70a535b1f14
This commit is contained in:
Yue Tao 2022-06-13 13:19:54 +08:00 committed by Yue Tao
parent 7592d1200c
commit f8288ed9a1

View File

@ -136,6 +136,7 @@ def tar_cmd(tarball_name, logger):
logger.error('Not supported tarball type, the supported types are: tar.gz|tar.bz2|tar.xz|tgz')
raise ValueError(f'{tarball_name} type is not supported')
targz = targz.group(1)
# Refer to untar.py of debmake python module
if targz == 'tar.bz2':
cmd = 'tar --bzip2 -xf %s '