[sysadmin-bin] ftpadmin: make it work when DEBUG is off (grrrr)



commit 7a201b7ca5d4b3a0bade4902015355922c4a3616
Author: Olav Vitters <olav vitters nl>
Date:   Sun Mar 27 13:41:05 2011 +0200

    ftpadmin: make it work when DEBUG is off (grrrr)

 ftpadmin |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index 868dd2d..521b904 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -833,7 +833,7 @@ Install %s? [Y/n]""" % self.module,
         # Don't allow an existing tarball to be overwritten
         if not DEBUG:
             # When debugging, only check for the exact tarball name
-            if self.version in self.fileinfo.versions:
+            if self.version in self.moduleinfo.versions:
                 print >>sys.stderr, """ERROR: %s already exists in the archive!""" % self.basename
                 return False
         else:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]