]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/queue_install.py
copyfile wants full names
[dak.git] / daklib / queue_install.py
index 78b827a51b5bd0a45852a1fa71458ef37e980186..a9c94ae86295fcf11341db29519dd7a6a792a517 100755 (executable)
@@ -26,7 +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 shutil import copyfile
 
 from daklib import utils
 from daklib.dbconn import *
@@ -130,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():
-                copy(os.path.join(polq.path, f), q.path)
+                copyfile(os.path.join(polq.path, f), os.path.join(q.path, f))
 #
 #################################################################################
 #
@@ -156,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():
-                copy(os.path.join(polq.path, f), q.path)
+                copyfile(os.path.join(polq.path, f), os.path.join(q.path, f))
 
 ################################################################################