]> git.e2factory.org Git - e2factory.git/commitdiff
e2lib.tar() takes an argument vector
authorFabian Godehardt <fg@emlix.com>
Tue, 18 Sep 2012 08:20:12 +0000 (10:20 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:12 +0000 (19:07 +0100)
Signed-off-by: Fabian Godehardt <fg@emlix.com>
local/cvs.lua
local/svn.lua

index 002ba15d47f3ebeadc73baff951eedb1120240b6..fa5edf06a41975614304be352d02b8f05a533999 100644 (file)
@@ -397,9 +397,8 @@ function cvs.toresult(info, sourcename, sourceset, directory)
     end
     -- create a tarball in the final location
     local archive = string.format("%s.tar.gz", src.name)
-    local tar_args = string.format("-C '%s' -czf '%s/%s' '%s'",
-    tmpdir,    sourcedir, archive, sourcename)
-    rc, re = e2lib.tar(tar_args)
+    rc, re = e2lib.tar({ "-C", tmpdir ,"-czf", sourcedir .. "/" .. archive,
+    sourcename })
     if not rc then
         return false, e:cat(re)
     end
index b9b4340e62a366f54e54dcf173dfc6129ddd4835..44cb1b6e61f942d848375bd1d892ad18bbed9e3b 100644 (file)
@@ -283,9 +283,8 @@ function svn.toresult(info, sourcename, sourceset, directory)
     end
     -- create a tarball in the final location
     local archive = string.format("%s.tar.gz", src.name)
-    local tar_args = string.format("-C '%s' -czf '%s/%s' '%s'",
-    tmpdir,    sourcedir, archive, sourcename)
-    rc, re = e2lib.tar(tar_args)
+    rc, re = e2lib.tar({ "-C", tmpdir ,"-czf", sourcedir .. "/" .. archive,
+    sourcename })
     if not rc then
         return false, e:cat(re)
     end