]> git.e2factory.org Git - e2factory.git/commitdiff
Change e2lib e2_su(), e2_su_2_2(), and tar() over to argument vectors
authorTobias Ulmer <tu@emlix.com>
Tue, 10 Jul 2012 13:16:47 +0000 (15:16 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 10 Jul 2012 13:16:47 +0000 (15:16 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 6061f59dfb8048b7e50cc9b4cb36e5515f2fc13a..f608b0268e168fc63a516f01b5bb2e0b846f8b14 100644 (file)
@@ -1776,24 +1776,30 @@ function sha1sum(path)
 end
 
 --- call the e2-su command
--- @param args string
+-- @param argv table: argument vector
 -- @return bool
-function e2_su(args)
-  return call_tool("e2-su", args)
+function e2_su(argv)
+  assert(type(argv) == "table")
+
+  return call_tool_argv("e2-su", argv)
 end
 
 --- call the e2-su-2.2 command
--- @param args string
+-- @param argv table: argument vector
 -- @return bool
-function e2_su_2_2(args)
-  return call_tool("e2-su-2.2", args)
+function e2_su_2_2(argv)
+  assert(type(argv) == "table")
+
+  return call_tool_argv("e2-su-2.2", argv)
 end
 
 --- call the tar command
--- @param args string
+-- @param argv table: argument vector
 -- @return bool
-function tar(args)
-  return call_tool("tar", args)
+function tar(argv)
+  assert(type(argv) == "table")
+
+  return call_tool_argv("tar", argv)
 end
 
 --- get system architecture