Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 751722 Details for
Bug 730624
app-shells/gentoo-bashcomp-20190211 : skip the ~ ending files (backup file) in /etc/portage/repos.conf
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
ignore-invalid-repos-conf.patch (text/plain), 1.50 KB, created by
redneb
on 2021-11-16 15:55:06 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
redneb
Created:
2021-11-16 15:55:06 UTC
Size:
1.50 KB
patch
obsolete
>From 87081c6608bc930d56afc6fecfb4a8791460967b Mon Sep 17 00:00:00 2001 >From: redneb <redneb@gmx.com> >Date: Tue, 16 Nov 2021 17:42:15 +0200 >Subject: [PATCH] ignore non conf files in /etc/portage/repos.conf/ > >portage ignores any file in /etc/portage/repos.conf/ (when that is in >fact a directory) that does not have a name of the form "*.conf". > >gentoo-bashcomp should emulate the behavior of portage. Otherwise you >might run into issues: e.g. if there is a backup of eselect-repo.conf >called eselect-repo.conf~ that contains references to a now removed >overlay, gentoo-bashcomp should not try to search for completions in the >now nonexistent repo directory >--- > helpers/gentoo-common.sh | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/helpers/gentoo-common.sh b/helpers/gentoo-common.sh >index 6e8d51c..9424ad6 100644 >--- a/helpers/gentoo-common.sh >+++ b/helpers/gentoo-common.sh >@@ -7,7 +7,7 @@ > # Retrieve PORTDIR/PORTDIR_OVERLAY location. > # > # In order of highest to lowest priority: >-# /etc/portage/repos.conf{,/*} >+# /etc/portage/repos.conf{,/*.conf} > # /usr/share/portage/config/repos.conf > # /etc/portage/make.conf > # /etc/make.conf >@@ -65,7 +65,7 @@ _parsereposconf() { > > for f in @GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/repos.conf \ > @GENTOO_PORTAGE_EPREFIX@/etc/portage/repos.conf \ >- @GENTOO_PORTAGE_EPREFIX@/etc/portage/repos.conf/*; do >+ @GENTOO_PORTAGE_EPREFIX@/etc/portage/repos.conf/*.conf; do > > [[ -f ${f} ]] || continue > insection=0 >-- >2.32.0 >
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 730624
: 751722 |
783368