X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_policy.py;h=ab58cfe1dce84ce2cc990c01b7987c7636220f66;hb=354d46ad379c4c4e167d0fa7cdf7f9c34f3afbcd;hp=db459607588971ae19c1b80b6dc04dd85b44560a;hpb=76bcea909c8a45646123385d82793e8d00ba87b7;p=dak.git diff --git a/dak/process_policy.py b/dak/process_policy.py index db459607..ab58cfe1 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -162,16 +162,19 @@ def comment_accept(upload, srcqueue, comments, transaction): if upload.source is not None: for f in [ df.poolfile for df in upload.source.srcfiles ]: dst = os.path.join(copydir, f.basename) - fs.copy(f.fullpath, dst, mode=mode) + if not os.path.exists(dst): + fs.copy(f.fullpath, dst, mode=mode) for db_binary in upload.binaries: f = db_binary.poolfile dst = os.path.join(copydir, f.basename) - fs.copy(f.fullpath, dst, mode=mode) + if not os.path.exists(dst): + fs.copy(f.fullpath, dst, mode=mode) src = os.path.join(upload.policy_queue.path, upload.changes.changesname) dst = os.path.join(copydir, upload.changes.changesname) - fs.copy(src, dst, mode=mode) + if not os.path.exists(dst): + fs.copy(src, dst, mode=mode) if upload.source is not None and not Options['No-Action']: urgency = upload.changes.urgency