[sysadmin-bin] ftpadmin: correctly determine basedir for Solaris tar files



commit 9c0d65af279f71b4b266c2208e686acb396828de
Author: Olav Vitters <olav vitters nl>
Date:   Fri Apr 8 22:00:40 2011 +0200

    ftpadmin: correctly determine basedir for Solaris tar files

 ftpadmin |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index db91393..0b5146a 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -333,7 +333,7 @@ class TarInfo(BasicInfo):
                 if file_count == 1:
                     if info.isdir():
                         uniq_dir = "%s/" % info.name
-                    else
+                    else:
                         uniq_dir = os.path.basename(info.name.replace("/",os.sep)) if "/" in info.name else None
                 elif uniq_dir is not None and not info.name.startswith(uniq_dir):
                     uniq_dir = None



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