Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 863731 Details for
Bug 908401
app-admin/eselect: eselect env update fails due to erroneous detection after sys-apps/file change
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for app-admin/eselect
env.eselect.diff (text/plain), 840 bytes, created by
Ulrich Müller
on 2023-06-12 12:32:50 UTC
(
hide
)
Description:
Patch for app-admin/eselect
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2023-06-12 12:32:50 UTC
Size:
840 bytes
patch
obsolete
>diff --git a/modules/env.eselect b/modules/env.eselect >index 6334d7c..7161e10 100644 >--- a/modules/env.eselect >+++ b/modules/env.eselect >@@ -1,5 +1,5 @@ > # -*-eselect-*- vim: ft=eselect >-# Copyright 2005-2020 Gentoo Authors >+# Copyright 2005-2023 Gentoo Authors > # Distributed under the terms of the GNU GPL version 2 or later > > inherit config multilib package-manager >@@ -46,9 +46,10 @@ is_envfile() { > [[ -n ${envfile##*~} ]] || return 1 > [[ ${envfile##*.} != bak ]] || return 1 > >- mime=$(POSIXLY_CORRECT=1 file -i "${envfile}" \ >- | cut -d ' ' -f 2 | sed -e 's/;$//') >- if ! has ${mime} ${MIME_WHITELIST}; then >+ mime=$(POSIXLY_CORRECT=1 file -bi -e soft "${envfile}") \ >+ || die "'file' command failed" >+ mime=${mime%%;*} >+ if ! has "${mime}" ${MIME_WHITELIST}; then > echo "Skipping non-text file ${envfile}." > return 1 > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 908401
: 863731