]> git.e2factory.org Git - e2factory.git/commitdiff
whitespace fixes
authorGordon Hecker <gh@emlix.com>
Thu, 22 Oct 2009 11:16:23 +0000 (13:16 +0200)
committerGordon Hecker <gh@emlix.com>
Thu, 22 Oct 2009 12:35:21 +0000 (14:35 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/transport.lua

index f72129f3330ba98b48c504e6251e8bf72540289b..a2258c1d16de2cfb36bec84678c036b99ad572e7 100644 (file)
@@ -166,7 +166,7 @@ function fetch_file(surl, location, destdir, destname)
                else
                        user = ""
                end
-    if u.port then
+               if u.port then
                        if u.transport == "scp" then
                                port = "-P " .. u.port
                        else
@@ -174,12 +174,11 @@ function fetch_file(surl, location, destdir, destname)
                        end
                else
                        port = ""
-       end
+               end
 
-               local args = string.format(
-                                       " %s '%s%s:/%s/%s' '%s/%s'",
-                                       port,user, u.servername, u.path, location,
-                                       destdir, tmpfile)
+               local args = string.format(" %s '%s%s:/%s/%s' '%s/%s'",
+                                       port,user, u.servername, u.path,
+                                       location, destdir, tmpfile)
                rc, re = e2lib.scp(args)
                if not rc then
                        return false, e:cat(re)