From 8bebf7319dc02490bb82aa43b7edd3882240ab0f Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 29 Sep 2019 13:59:27 +0200 Subject: [PATCH] do not add new dotfiles if ALL is used --- README.md | 6 ++---- dotdrop/cfg_yaml.py | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ba55950..0a8d307 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,6 @@ It allows to store your dotfiles on git and automagically deploy different versions of the same file on different setups. -If you like dotdrop, Buy Me a Coffee at ko-fi.com - It also allows to manage different *sets* of dotfiles. For example you can have a set of dotfiles for your home laptop and a different set for your office desktop. Those sets may overlap and different @@ -72,7 +70,7 @@ why [dotdrop](https://github.com/deadc0de6/dotdrop) rocks. * [Installation](#installation) * [Getting started](#getting-started) * [Documentation](#documentation) -* [Support](#support) +* [Thank you](#thank-you) # Installation @@ -275,7 +273,7 @@ For more options see `dotdrop --help` and the [wiki](https://github.com/deadc0de Dotdrop's documentation is hosted on [its wiki](https://github.com/deadc0de6/dotdrop/wiki). -# Support +# Thank you If you like dotdrop, Buy Me a Coffee at ko-fi.com diff --git a/dotdrop/cfg_yaml.py b/dotdrop/cfg_yaml.py index 2bfbf0a..55393c6 100644 --- a/dotdrop/cfg_yaml.py +++ b/dotdrop/cfg_yaml.py @@ -658,7 +658,9 @@ class CfgYaml: """add an existing dotfile key to a profile_key""" self._new_profile(profile_key) profile = self.yaml_dict[self.key_profiles][profile_key] - if dotfile_key not in profile[self.key_profile_dotfiles]: + pdfs = profile[self.key_profile_dotfiles] + if self.key_all not in pdfs and \ + dotfile_key not in pdfs: profile[self.key_profile_dotfiles].append(dotfile_key) if self.debug: msg = 'add \"{}\" to profile \"{}\"'.format(dotfile_key,