aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zachary.medico@sony.com>2019-12-03 15:14:54 -0800
committerZac Medico <zmedico@gentoo.org>2019-12-03 15:18:02 -0800
commit1c2e99fbf21675c8335ab8a3eee0ed58e89c4342 (patch)
treedf5af8d63907af762abf6c0b8347d1396d734f48
parentrepoman commit: ignore unadded hidden files (diff)
downloadportage-1c2e99fbf21675c8335ab8a3eee0ed58e89c4342.tar.gz
portage-1c2e99fbf21675c8335ab8a3eee0ed58e89c4342.tar.bz2
portage-1c2e99fbf21675c8335ab8a3eee0ed58e89c4342.zip
repoman commit: ignore unadded hidden files except '.' itself
Fixes: a561ac910331 ("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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/repoman/lib/repoman/actions.py b/repoman/lib/repoman/actions.py
index 2817fa58a..387ba7800 100644
--- a/repoman/lib/repoman/actions.py
+++ b/repoman/lib/repoman/actions.py
@@ -334,7 +334,7 @@ the whole commit message to abort.
if myunadded:
for x in range(len(myunadded) - 1, -1, -1):
xs = myunadded[x].split("/")
- if (any(token.startswith('.') for token in xs) or
+ if (any(token.startswith('.') and token != '.' 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.