Mercurial > treepkg
changeset 430:4aaf73a6225e treepkg-status
introduced after_copy_hook and made rsync upload to publishdir optional
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Thu, 29 Jul 2010 12:07:57 +0000 |
parents | 9cfa9f64387a |
children | 0953704dc49e |
files | bin/publishdebianpackages.py |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/publishdebianpackages.py Wed Jul 28 11:38:00 2010 +0000 +++ b/bin/publishdebianpackages.py Thu Jul 29 12:07:57 2010 +0000 @@ -32,6 +32,8 @@ "publish_user", "publish_host", ("architectures", shlex.split, "armel i386 source"), ("after_upload_hook", shlex.split), + ("after_copy_hook", shlex.split), + ("publish_packages", convert_bool, "False"), ("publish_remove_old_packages", convert_bool), ("publish_dir", remove_trailing_slashes), ("cachedb", @@ -228,9 +230,17 @@ architectures = config["architectures"] copy_to_cachedir(config, track, revision, quiet, architectures) - for arch in architectures: - copy_arch_to_publishdir(config, dist, section, get_binary_arch(arch), - quiet) + + if config["after_copy_hook"] and \ + len((config["after_copy_hook"][0]).strip()) > 0: + if not quiet: + print "running after copy hook" + call(config["after_copy_hook"]) + + if config["publish_packages"]: + for arch in architectures: + copy_arch_to_publishdir(config, dist, section, get_binary_arch(arch), + quiet) # update apt archive if config["after_upload_hook"] and \