diff options
author | 2022-06-07 15:44:35 +0200 | |
---|---|---|
committer | 2023-01-14 16:39:34 +0000 | |
commit | 184a51233d05f7b45a3c3fc73782be600add6000 (patch) | |
tree | 9f77f5a432137b1e730855ed3d45fd2861dffa99 | |
parent | Revert "ignore non conf files in /etc/portage/repos.conf." (diff) | |
download | gentoo-bashcomp-184a51233d05f7b45a3c3fc73782be600add6000.tar.gz gentoo-bashcomp-184a51233d05f7b45a3c3fc73782be600add6000.tar.bz2 gentoo-bashcomp-184a51233d05f7b45a3c3fc73782be600add6000.zip |
Ignore backup prefixed or suffixed files in repos.conf subdirectory.gentoo-bashcomp-20230313
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 <sam@gentoo.org>
-rw-r--r-- | helpers/gentoo-common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |