changeset 21702:70649030d511

mx archive: exclude dotfiles
author Andreas Woess <andreas.woess@oracle.com>
date Wed, 03 Jun 2015 17:38:26 +0200
parents 8b03b940c29d
children b939ee385ae4
files mxtool/mx.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Wed Jun 03 17:37:43 2015 +0200
+++ b/mxtool/mx.py	Wed Jun 03 17:38:26 2015 +0200
@@ -167,6 +167,9 @@
                 srcArc = arc if unified else srcArcRaw
                 services = {}
                 def overwriteCheck(zf, arcname, source):
+                    if os.path.basename(arcname).startswith('.'):
+                        logv('Excluding dotfile: ' + source)
+                        return True
                     if not hasattr(zf, '_provenance'):
                         zf._provenance = {}
                     existingSource = zf._provenance.get(arcname, None)