aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zachary.medico@sony.com>2019-12-03 14:59:17 -0800
committerZac Medico <zmedico@gentoo.org>2019-12-03 15:07:26 -0800
commita561ac910331657ffb281ca2b16bb1c8d075770e (patch)
treee1e49f1e1d2d714a771cfa09468df50b28bd613c
parentdepgraph: fix buildtime_blockers logic (diff)
downloadportage-a561ac910331657ffb281ca2b16bb1c8d075770e.tar.gz
portage-a561ac910331657ffb281ca2b16bb1c8d075770e.tar.bz2
portage-a561ac910331657ffb281ca2b16bb1c8d075770e.zip
repoman commit: ignore unadded hidden files
Bug: https://bugs.gentoo.org/541076 Copyright: Sony Interactive Entertainment Inc. Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--repoman/lib/repoman/actions.py3
1 files changed, 2 insertions, 1 deletions
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]