From 184a51233d05f7b45a3c3fc73782be600add6000 Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Tue, 7 Jun 2022 15:44:35 +0200 Subject: Ignore backup prefixed or suffixed files in repos.conf subdirectory. Portage ignores any files starting with '.' or ending with '~' in the repos.conf directory. See 'portage.util' function '_recursive_basename_filter'. Closes: https://bugs.gentoo.org/730624 Signed-off-by: Sam James --- helpers/gentoo-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/gentoo-common.sh b/helpers/gentoo-common.sh index 6e8d51c..35b5946 100644 --- a/helpers/gentoo-common.sh +++ b/helpers/gentoo-common.sh @@ -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/[!.]*[!~]; do [[ -f ${f} ]] || continue insection=0 -- cgit v1.2.3-65-gdbad