commit:     7fa294b66c78b9a9000d161f3b4bacbad158489b
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed May 22 15:35:07 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed May 22 15:35:07 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=7fa294b6

unpack: skip unrecognized file formats *silently*

See PMS section 12.3.15.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 bin/phase-helpers.sh | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 45a1639c42..77132eb066 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -446,8 +446,6 @@ unpack() {
                                                echo "${my_output}" >&2
                                                die "${myfail}"
                                        fi
-                               else
-                                       __vecho "unpack ${x}: file format not 
recognized. Ignoring."
                                fi
                                ;;
                        rar)
@@ -459,8 +457,6 @@ unpack() {
                                fi
                                if ___eapi_unpack_supports_rar; then
                                        unrar x -idq -o+ "${srcdir}${x}" || die 
"${myfail}"
-                               else
-                                       __vecho "unpack ${x}: file format not 
recognized. Ignoring."
                                fi
                                ;;
                        lha|lzh)
@@ -473,8 +469,6 @@ unpack() {
                                fi
                                if ___eapi_unpack_supports_lha; then
                                        lha xfq "${srcdir}${x}" || die 
"${myfail}"
-                               else
-                                       __vecho "unpack ${x}: file format not 
recognized. Ignoring."
                                fi
                                ;;
                        a)
@@ -545,8 +539,6 @@ unpack() {
                                fi
                                if ___eapi_unpack_supports_xz; then
                                        __unpack_tar "xz -T$(___makeopts_jobs) 
-d"
-                               else
-                                       __vecho "unpack ${x}: file format not 
recognized. Ignoring."
                                fi
                                ;;
                        txz)
@@ -558,13 +550,8 @@ unpack() {
                                fi
                                if ___eapi_unpack_supports_txz; then
                                        XZ_OPT="-T$(___makeopts_jobs)" tar xof 
"${srcdir}${x}" || die "${myfail}"
-                               else
-                                       __vecho "unpack ${x}: file format not 
recognized. Ignoring."
                                fi
                                ;;
-                       *)
-                               __vecho "unpack ${x}: file format not 
recognized. Ignoring."
-                               ;;
                esac
        done
 

Reply via email to