From: Luca Falavigna Date: Fri, 25 Jun 2010 14:22:38 +0000 (+0000) Subject: Replace base_filename with os.path.basename X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7aad4c6ec0c430b8f885f8237a0b33274c641258;p=dak.git 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 --- 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