From 7aad4c6ec0c430b8f885f8237a0b33274c641258 Mon Sep 17 00:00:00 2001
From: Luca Falavigna <dktrkranz@debian.org>
Date: Fri, 25 Jun 2010 14:22:38 +0000
Subject: [PATCH] Replace base_filename with os.path.basename

base_filename is not defined before, replace it with a function
to avoid generating a NameError exception

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
 daklib/queue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daklib/queue.py b/daklib/queue.py
index 58fdf7f3..6accba06 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -454,7 +454,7 @@ class Upload(object):
 
         # Check the .changes is non-empty
         if not self.pkg.files:
-            self.rejects.append("%s: nothing to do (Files field is empty)." % (base_filename))
+            self.rejects.append("%s: nothing to do (Files field is empty)." % (os.path.basename(self.pkg.changes_file)))
             return False
 
         # Changes was syntactically valid even if we'll reject
-- 
2.39.5