From: Joerg Jaspert Date: Mon, 13 Dec 2010 20:22:53 +0000 (+0100) Subject: queue_install X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=5024939d958b622c5a156355fe28de157ae6a119;p=dak.git queue_install we really need to copy here, symlinks wont work due to the rights of the queues. the webserver wont see the embargoed fun otherwise Signed-off-by: Joerg Jaspert --- diff --git a/daklib/queue_install.py b/daklib/queue_install.py index e9d2a4d3..78b827a5 100755 --- a/daklib/queue_install.py +++ b/daklib/queue_install.py @@ -26,6 +26,7 @@ Utility functions for process-upload # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import os +from shutil import copy from daklib import utils from daklib.dbconn import * @@ -129,7 +130,7 @@ def do_unembargo(u, summary, short_summary, chg, session=None): suite = get_suite(suite_name, session) for q in suite.copy_queues: for f in u.pkg.files.keys(): - os.symlink(os.path.join(polq.path, f), os.path.join(q.path, f)) + copy(os.path.join(polq.path, f), q.path) # ################################################################################# # @@ -155,7 +156,7 @@ def do_embargo(u, summary, short_summary, chg, session=None): suite = get_suite(suite_name, session) for q in suite.copy_queues: for f in u.pkg.files.keys(): - os.symlink(os.path.join(polq.path, f), os.path.join(q.path, f)) + copy(os.path.join(polq.path, f), q.path) ################################################################################