From 9c032714c50bdb3675c3c30cb5c6de316ae7261b Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Thu, 10 Nov 2016 16:03:15 +0200 Subject: [PATCH] corrected problem with article items and the rectangle/triangle thing modified: modules/deploy.py --- modules/deploy.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/deploy.py b/modules/deploy.py index 5c3d77a..fcf7f29 100644 --- a/modules/deploy.py +++ b/modules/deploy.py @@ -327,11 +327,11 @@ def sync(full=True, extras=False): @task -def media(destination_branch): +def media(source_branch): """ - sync media files from current branch to destination branch + sync media files from source branch to current branch - destination_branch - the branch to which we are copying media files + source_branch - the branch to which we are copying media files """ configuration = env.config @@ -339,10 +339,8 @@ def media(destination_branch): print configuration.project.branch - configuration_dst = initialize.get_config( - destination_branch) - - configuration_src = configuration + configuration_src = initialize.environment(source_branch) + configuration_dst = configuration print "branch_src: %s" % configuration_src.project.branch print "branch_dst: %s" % configuration_dst.project.branch @@ -394,6 +392,7 @@ def media(destination_branch): # configuration_dst = initialize.environment( # destination_branch) + print "upstream: %s" % upstream print "\ncopy from {src} to {dst}\n".format( src=configuration_src.project.host, dst=configuration_dst.project.host)