1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +00:00

do not add new dotfiles if ALL is used

This commit is contained in:
deadc0de6
2019-09-29 13:59:27 +02:00
parent 40bcd7fd48
commit 8bebf7319d
2 changed files with 5 additions and 5 deletions

View File

@@ -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, <a href='https://ko-fi.com/I2I2ZZT4' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
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, <a href='https://ko-fi.com/I2I2ZZT4' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>

View File

@@ -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,