]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/queue_install.py
use copyfile, we want it accessible in that dest
[dak.git] / daklib / queue_install.py
index e9d2a4d3fc179830c40bbf9e08e9b0da6607adf3..1135c137cd1fcb4fec075e4e4aa8eaac029d9aa6 100755 (executable)
@@ -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 copyfile
 
 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))
+                copyfile(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))
+                copyfile(os.path.join(polq.path, f), q.path)
 
 ################################################################################