]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- check for destdir when moving pkg
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 27 Jun 2009 19:54:05 +0000 (19:54 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 27 Jun 2009 19:54:05 +0000 (19:54 +0000)
Changed files:
    modules/ftptree.py -> 1.40

modules/ftptree.py

index ed8477cae11e3f4c8583d2b7503d65cc30f2b594..89fe1c0a379d3f858a3fae2a51815f207aace3ca 100644 (file)
@@ -48,6 +48,8 @@ def mv(src, dst, test=False):
     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)
This page took 0.042147 seconds and 4 git commands to generate.