commit: a561ac910331657ffb281ca2b16bb1c8d075770e Author: Zac Medico <zachary.medico <AT> sony <DOT> com> AuthorDate: Tue Dec 3 22:59:17 2019 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Dec 3 23:07:26 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a561ac91
repoman commit: ignore unadded hidden files Bug: https://bugs.gentoo.org/541076 Copyright: Sony Interactive Entertainment Inc. Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> repoman/lib/repoman/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repoman/lib/repoman/actions.py b/repoman/lib/repoman/actions.py index 56a5255bf..2817fa58a 100644 --- a/repoman/lib/repoman/actions.py +++ b/repoman/lib/repoman/actions.py @@ -334,7 +334,8 @@ the whole commit message to abort. if myunadded: for x in range(len(myunadded) - 1, -1, -1): xs = myunadded[x].split("/") - if self.repo_settings.repo_config.find_invalid_path_char(myunadded[x]) != -1: + if (any(token.startswith('.') for token in xs) or + self.repo_settings.repo_config.find_invalid_path_char(myunadded[x]) != -1): # The Manifest excludes this file, # so it's safe to ignore. del myunadded[x]