diff options
author | Isaac True <isaac.true@emlix.com> | 2025-05-26 15:57:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-28 12:37:02 +0100 |
commit | a3bdd2144c39772c1217c30bc09fbc55fb967c6c (patch) | |
tree | 5dc6369537419a20176a2ce5dc46fda370295563 /bitbake | |
parent | 7c4e8e0def43305bf838f948c89b320f72e94b9e (diff) | |
download | poky-a3bdd2144c39772c1217c30bc09fbc55fb967c6c.tar.gz |
bitbake: fetch2: add support for .debs containing uncompressed data tarballs
Some .deb files contain uncompressed data tarballs which do not have an
additional file extension after `.tar`. Add support for such cases while
preserving the existing behaviour.
(Bitbake rev: e3834deb427ceb1d1ae9a96c1e0dec990d7f3805)
Signed-off-by: Isaac True <isaac.true@emlix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 2de4f4f8c0..97cbd3567a 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1589,11 +1589,11 @@ class FetchMethod(object): | |||
1589 | datafile = None | 1589 | datafile = None |
1590 | if output: | 1590 | if output: |
1591 | for line in output.decode().splitlines(): | 1591 | for line in output.decode().splitlines(): |
1592 | if line.startswith('data.tar.'): | 1592 | if line.startswith('data.tar.') or line == 'data.tar': |
1593 | datafile = line | 1593 | datafile = line |
1594 | break | 1594 | break |
1595 | else: | 1595 | else: |
1596 | raise UnpackError("Unable to unpack deb/ipk package - does not contain data.tar.* file", urldata.url) | 1596 | raise UnpackError("Unable to unpack deb/ipk package - does not contain data.tar* file", urldata.url) |
1597 | else: | 1597 | else: |
1598 | raise UnpackError("Unable to unpack deb/ipk package - could not list contents", urldata.url) | 1598 | raise UnpackError("Unable to unpack deb/ipk package - could not list contents", urldata.url) |
1599 | cmd = 'ar x %s %s && %s -p -f %s && rm %s' % (file, datafile, tar_cmd, datafile, datafile) | 1599 | cmd = 'ar x %s %s && %s -p -f %s && rm %s' % (file, datafile, tar_cmd, datafile, datafile) |