unpacker.eclass: respect AR variable in unpack_deb
authorMike Gilbert <floppym@gentoo.org>
Sun, 10 May 2020 16:35:02 +0000 (12:35 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 10 May 2020 16:39:44 +0000 (12:39 -0400)
Closes: https://bugs.gentoo.org/722054
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/unpacker.eclass

index 370f0a9c59ab82b2701bd1e6009963c0539fccf6..865e2e1a1a58864b0e425612295fd38d5630e7c7 100644 (file)
@@ -279,7 +279,8 @@ unpack_deb() {
                        done
                } < "${deb}"
        else
-               ar x "${deb}"
+               local AR=${AR-ar}
+               ${AR} x "${deb}" || die
        fi
 
        unpacker ./data.tar*