[dak/master] 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 <joerg@debian.org>
---
daklib/queue_install.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/daklib/queue_install.py b/daklib/queue_install.py
index e9d2a4d..78b827a 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)
################################################################################
--
1.5.6.5
Reply to: