From 4cb5d79fa82e0afbe2cbea64932105f45d9aba6f Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 21 Nov 2012 17:57:16 +0100 Subject: [PATCH] new-source: remove unhandled --checksum-file opt While it could be specified, it didn't do anything in particular. While there, also fix the documentation. Signed-off-by: Tobias Ulmer --- local/e2-new-source.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/local/e2-new-source.lua b/local/e2-new-source.lua index 4d036d0..bad6fb1 100644 --- a/local/e2-new-source.lua +++ b/local/e2-new-source.lua @@ -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 -- 2.39.5