[Treepkg-commits] r390 - branches/treepkg-status/bin
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 29 14:07:59 CEST 2010
Author: bricks
Date: 2010-07-29 14:07:57 +0200 (Thu, 29 Jul 2010)
New Revision: 390
Modified:
branches/treepkg-status/bin/publishdebianpackages.py
Log:
introduced after_copy_hook and made rsync upload to publishdir optional
Modified: branches/treepkg-status/bin/publishdebianpackages.py
===================================================================
--- branches/treepkg-status/bin/publishdebianpackages.py 2010-07-28 11:38:00 UTC (rev 389)
+++ branches/treepkg-status/bin/publishdebianpackages.py 2010-07-29 12:07:57 UTC (rev 390)
@@ -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,10 +230,18 @@
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 \
len((config["after_upload_hook"][0]).strip()) > 0:
More information about the Treepkg-commits
mailing list