From: Philipp Kern <pkern@debian.org>
Date: Sat, 30 Aug 2008 18:51:15 +0000 (+0000)
Subject: dak/process_new.py (is_source_in_queue_dir): add the queue path to the changes filename
X-Git-Tag: debian-r/squeeze~1476^2~51^2
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=80f24c4faac2b6d2493884bf68e5f80d21d13b81;p=dak.git

dak/process_new.py (is_source_in_queue_dir): add the queue path to the changes filename

* dak/process_new.py (is_source_in_queue_dir): join the queue path
  because os.listdir entries come with their path stripped

Signed-off-by: Philipp Kern <pkern@debian.org>
---

diff --git a/ChangeLog b/ChangeLog
index 69641910..e1c09fcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-30  Philipp Kern  <pkern@debian.org>
+
+	* dak/process_new.py (is_source_in_queue_dir): join the queue path
+	because os.listdir entries come with their path stripped
+
 2008-08-30  Philipp Kern  <pkern@debian.org>
 
 	* dak/process_new.py (do_accept_stableupdate): state what we intend
diff --git a/dak/process_new.py b/dak/process_new.py
index bd0653e0..0e1d5c03 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -819,7 +819,7 @@ def is_source_in_queue_dir(qdir):
     for entry in entries:
         # read the .dak
         u = queue.Upload(Cnf)
-        u.pkg.changes_file = entry
+        u.pkg.changes_file = os.path.join(qdir, entry)
         u.update_vars()
         if not Upload.pkg.changes["architecture"].has_key("source"):
             # another binary upload, ignore