summaryrefslogtreecommitdiffstats
path: root/sync.py
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2012-01-08 23:19:11 +0100
committerLaurent Bachelier <laurent@bachelier.name>2012-01-08 23:40:13 +0100
commit98ca458c0c0161d8c24c9bc649d3716321c55b02 (patch)
tree3e440f44d32130f88ff96a5c338e5379155b53fa /sync.py
parentBetter display (diff)
downloadpublic-dotfiles-98ca458c0c0161d8c24c9bc649d3716321c55b02.tar.xz
Really use tags for the Gentoo configs
Diffstat (limited to 'sync.py')
-rwxr-xr-xsync.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sync.py b/sync.py
index 02efca1..ddc0273 100755
--- a/sync.py
+++ b/sync.py
@@ -5,9 +5,11 @@ import sync_options as options
from os import path
base_path = path.join(path.dirname(__file__), '..')
+
def privpub(dir):
return [path.join("private", dir), path.join("public", dir)]
+
dirs = privpub("base")
if "desktop" in options.tags and not options.is_root:
dirs += privpub("desktop")
@@ -16,11 +18,8 @@ for dir in dirs:
base_dir = path.normpath(path.join(base_path, dir))
ConfigSource(base_dir, "~", None, options).sync()
-# FIXME remove the "desktop" condition when possible
-if options.is_root and options.is_gentoo and "desktop" in options.tags:
+if options.is_root and options.is_gentoo:
dirs = privpub("gentoo")
-
for dir in dirs:
base_dir = path.normpath(path.join(base_path, dir))
ConfigSource(base_dir, "/etc", None, options).sync()
-