diff options
author | Jon Bernard <jbernard@tuxion.com> | 2013-06-24 08:24:20 -0400 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2013-11-07 09:38:44 -0500 |
commit | db0e9d1130dfd212ca6f2e862b8b9a3b875a4f1b (patch) | |
tree | 24836ccda7521ac9d067c6e6a9a538c0616e5060 | |
parent | b85f36bc3e3bafe227ca7b3259a67d1683727084 (diff) | |
download | dotfiles-db0e9d1130dfd212ca6f2e862b8b9a3b875a4f1b.tar.gz dotfiles-db0e9d1130dfd212ca6f2e862b8b9a3b875a4f1b.tar.bz2 dotfiles-db0e9d1130dfd212ca6f2e862b8b9a3b875a4f1b.zip |
Restrict the sync files to what user specified
If the user doesn't specify a set of files to sync then the entire set of
dotfiles is assumed. There is an obvious bug here, as user-passed strings are
not yet converted to dotfile objects.
-rw-r--r-- | dotfiles/core.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py index d13c9f4..8ef0782 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -187,7 +187,11 @@ class Dotfiles(object): """Synchronize this repository, creating and updating the necessary symbolic links.""" - for dotfile in self.dotfiles: + # unless a set of files is specified, operate on all files + if not files: + files = self.dotfiles + + for dotfile in files: dotfile.sync(force) def add(self, files): |