]> git.e2factory.org Git - e2factory.git/commitdiff
new-source: remove unhandled --checksum-file opt
authorTobias Ulmer <tu@emlix.com>
Wed, 21 Nov 2012 16:57:16 +0000 (17:57 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:11 +0000 (19:07 +0100)
While it could be specified, it didn't do anything in particular. While
there, also fix the documentation.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2-new-source.lua

index 4d036d082e9eb16edc1f24c87caff36982c454b9..bad6fb1e4dd719f507a088d2634654155792dbbf 100644 (file)
@@ -144,14 +144,16 @@ local function download(f)
 end
 
 --- new files source
--- @param location string: server/location string
+-- @param c table: cache
+-- @param server string: e2 server
+-- @param location string: location on server
 -- @param source_file string: source file url
 -- @param checksum_file string: checksum file url
--- @param flags table: flags
+-- @param no_checksum boolean|nil: don't verify checksum
 -- @return bool
 -- @return nil, an error string on error
 local function new_files_source(c, server, location, source_file, checksum_file,
-    checksum_file_format, no_checksum)
+    no_checksum)
     local source_file_base = e2lib.basename(source_file)
     local do_checksum = (not no_checksum)
     local checksum_type = "sha1"
@@ -278,13 +280,12 @@ elseif opts.files then
     local location = sl.location
     local source_file = arguments[2]
     local checksum_file = arguments[3]
-    local checksum_file_format = opts["checksum-file"]
     local no_checksum = opts["no-checksum"]
     if not no_checksum and not checksum_file then
         e2lib.abort("checksum file not given")
     end
     local rc = new_files_source(info.cache, server, location, source_file,
-    checksum_file, checksum_file_format, no_checksum)
+    checksum_file, no_checksum)
 else
     e2lib.log(1, "Creating repositories other than git is not supported yet.")
 end