• [gentoo-dev] [PATCH] unpacker.eclass: fix unpack_gpkg with TAPE set

    From Sam James@21:1/5 to All on Wed Dec 14 09:50:01 2022
    Closes: https://bugs.gentoo.org/885719
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    eclass/unpacker.eclass | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
    index 11f04fde7226..5ce681ebaa0d 100644
    --- a/eclass/unpacker.eclass
    +++ b/eclass/unpacker.eclass
    @@ -487,7 +487,7 @@ unpack_gpkg() {
    local dirname=${images[0]%/*}
    mkdir -p "${dirname}" || die
    tar -xOf "${gpkg}" "${images[0]}" | ${decomp:-cat} |
    - tar --no-same-owner -xC "${dirname}"
    + tar --no-same-owner -C "${dirname}" -xf -
    assert "Unpacking ${gpkg} failed"
    }

    --
    2.39.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to Sam James on Wed Dec 14 09:50:01 2022
    On Wed, 2022-12-14 at 08:48 +0000, Sam James wrote:
    Closes: https://bugs.gentoo.org/885719
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    eclass/unpacker.eclass | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
    index 11f04fde7226..5ce681ebaa0d 100644
    --- a/eclass/unpacker.eclass
    +++ b/eclass/unpacker.eclass
    @@ -487,7 +487,7 @@ unpack_gpkg() {
    local dirname=${images[0]%/*}
    mkdir -p "${dirname}" || die
    tar -xOf "${gpkg}" "${images[0]}" | ${decomp:-cat} |
    - tar --no-same-owner -xC "${dirname}"
    + tar --no-same-owner -C "${dirname}" -xf -
    assert "Unpacking ${gpkg} failed"
    }


    LGTM. Thanks!

    --
    Best regards,
    Michał Górny

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)