changeset 77:f0aa5a8af056

web: create cachedir if it doesn't exist
author Bernhard Herzog <bh@intevation.de>
date Tue, 17 Apr 2007 13:06:59 +0200
parents 7c55fb368d0b
children 9a602d8eaa60
files publishstaticweb.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/publishstaticweb.py	Tue Apr 17 12:29:24 2007 +0200
+++ b/publishstaticweb.py	Tue Apr 17 13:06:59 2007 +0200
@@ -15,6 +15,7 @@
 from treepkg.readconfig import read_config_section
 from treepkg.run import call
 from treepkg.cmdexpand import cmdexpand
+from treepkg.util import ensure_directory
 
 def remove_trailing_slashes(s):
     return s.rstrip("/")
@@ -54,6 +55,7 @@
                    **config))
 
     # rsync the new web-pages to the local cache
+    ensure_directory(config["cachedir"])
     call(cmdexpand("rsync -rL --delete $build_user$@$build_host:$build_dir/"
                    " $cachedir",
                    **config))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)