From 5024939d958b622c5a156355fe28de157ae6a119 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 13 Dec 2010 21:22:53 +0100 Subject: [PATCH] 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 --- daklib/queue_install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) ################################################################################ -- 2.39.5