Commit cff0ac46 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-checkpkg: add support for check installed package integrity

parent 66b3d8d3
......@@ -88,9 +88,30 @@ check_pkg_integrity()
check_${EXT}_integrity "$PKG" || fatal "Unknown package extension '$EXT' in $PKG package"
}
__epm_check_installed_pkg()
{
case $PMTYPE in
*-rpm)
docmd rpm -V $@
;;
*-dpkg)
docmd debsums $@
;;
*)
fatal "Do not known command for $PMTYPE"
;;
esac
}
epm_checkpkg()
{
if [ -n "$pkg_names" ] ; then
__epm_check_installed_pkg $pkg_names
return
fi
[ -n "$pkg_files" ] || fatal "Run without names"
local pkg
for pkg in $pkg_files ; do
......
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