pld-ftp-admin: modules/ftptree.py - check for destdir when moving pkg

glen glen at pld-linux.org
Sat Jun 27 21:54:10 CEST 2009


Author: glen                         Date: Sat Jun 27 19:54:10 2009 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
- check for destdir when moving pkg

---- Files affected:
pld-ftp-admin/modules:
   ftptree.py (1.39 -> 1.40) 

---- Diffs:

================================================================
Index: pld-ftp-admin/modules/ftptree.py
diff -u pld-ftp-admin/modules/ftptree.py:1.39 pld-ftp-admin/modules/ftptree.py:1.40
--- pld-ftp-admin/modules/ftptree.py:1.39	Wed May 27 21:24:57 2009
+++ pld-ftp-admin/modules/ftptree.py	Sat Jun 27 21:54:05 2009
@@ -48,6 +48,8 @@
     if test:
         if not os.path.exists(src):
             pinfo("TEST os.rename(%s, %s): source doesn't exists" % (fsrc, fdst))
+        if not os.path.exists(dst):
+            pinfo("TEST destination doesn't exist: %s" % dst)
     else:
         try:
             os.rename(fsrc, fdst)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/modules/ftptree.py?r1=1.39&r2=1.40&f=u



More information about the pld-cvs-commit mailing list