summaryrefslogtreecommitdiffstats
path: root/lib/format.lua
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2009-01-23 12:45:12 +0000
committerNatanael Copa <natanael.copa@gmail.com>2009-01-23 12:45:12 +0000
commit6e0459aa4284fb6fd411a40025982b9d5a3c0460 (patch)
tree2e7475610333fef6943199e53c7754ea7ecffa5f /lib/format.lua
parente4951a983b6edd3aa0ee1a3db4cd586907fb6455 (diff)
downloadacf-core-6e0459aa4284fb6fd411a40025982b9d5a3c0460.tar.bz2
acf-core-6e0459aa4284fb6fd411a40025982b9d5a3c0460.tar.xz
use the lua module md5 rather than call external prog md5sum
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1690 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/format.lua')
-rw-r--r--lib/format.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/format.lua b/lib/format.lua
index 331d112..63b8fec 100644
--- a/lib/format.lua
+++ b/lib/format.lua
@@ -187,17 +187,6 @@ function string_to_table ( text, delimiter)
return list
end
-function md5sum_string ( str)
- local cmd = "/bin/echo -n \"" .. format.escapespecialcharacters(str) .. "\"|/usr/bin/md5sum|cut -f 1 -d \" \" "
- f = io.popen(cmd)
- local checksum = {}
- for line in f:lines() do
- checksum[#checksum + 1] = line
- end
- f:close()
- return checksum[1]
-end
-
-- Takes a str and expands any ${...} constructs with the Lua variable
-- ex: a="foo"; print(expand_bash_syntax_vars("a=${a}) - > "a=foo"