# HG changeset patch # User Bernhard Herzog # Date 1176808019 -7200 # Node ID f0aa5a8af05648e39a667046170d42140e4a63a5 # Parent 7c55fb368d0bf3367839ce1494df268c746b7252 web: create cachedir if it doesn't exist diff -r 7c55fb368d0b -r f0aa5a8af056 publishstaticweb.py --- 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))