aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/core.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py
index 831ebf6..1341fab 100644
--- a/dotfiles/core.py
+++ b/dotfiles/core.py
@@ -155,10 +155,12 @@ class Dotfiles(object):
os.path.join(src_dir, dotfile), dst_dir,
add_dot=not bool(sub_dir), dry_run=self.dry_run))
- for dotfile in self.externals.keys():
- self.dotfiles.append(Dotfile(dotfile,
- os.path.expanduser(self.externals[dotfile]),
- dst_dir, add_dot=not bool(sub_dir), dry_run=self.dry_run))
+ # Externals are top-level only
+ if not sub_dir:
+ for dotfile in self.externals.keys():
+ self.dotfiles.append(Dotfile(dotfile,
+ os.path.expanduser(self.externals[dotfile]),
+ dst_dir, add_dot=not bool(sub_dir), dry_run=self.dry_run))
def _fqpn(self, dotfile, pkg_name=None):
"""Return the fully qualified path to a dotfile."""