Commit a2dbbf94 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: fix commands, add missed checkpkg

parent c3183ab1
......@@ -136,8 +136,14 @@ for opt in "$@" ; do
-ql|filelist) # HELPCMD: print package file list
epm_cmd=filelist
;;
check|simulate) # HELPCMD: simulate install (check requires)
epm_cmd=$opt
check) # HELPCMD: check local package base integrity
epm_cmd=check
;;
checkpkg|integrity) # HELPCMD: check package integrity
epm_cmd=checkpkg
;;
simulate) # HELPCMD: simulate install (check requires)
epm_cmd=simulate
;;
*)
if [ -f "$opt" ] ; then
......
......@@ -81,6 +81,8 @@ check_pkg_integrity()
epm_checkpkg()
{
[ -n "$pkg_files" ] || fatal "Run without names"
for i in $pkg_files ; do
check_pkg_integrity $i || fatal "Broken package $i"
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment