]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/queue.py
rsyncable
[dak.git] / daklib / queue.py
index 69bd944ecad25f984e22df3bc361ac33fb705886..31f9a25be9e48e5f34ea59d3d6743f539338825e 100755 (executable)
@@ -1045,10 +1045,10 @@ class Upload(object):
                 if not os.path.exists(src):
                     return
                 ftype = m.group(3)
-                if re_is_orig_source.match(f) and pkg.orig_files.has_key(f) and \
-                   pkg.orig_files[f].has_key("path"):
+                if re_is_orig_source.match(f) and self.pkg.orig_files.has_key(f) and \
+                   self.pkg.orig_files[f].has_key("path"):
                     continue
-                dest = os.path.join(os.getcwd(), f)
+                dest = os.path.join(dest_dir, f)
                 os.symlink(src, dest)
 
         # If the orig files are not a part of the upload, create symlinks to the