Commit 20b4ba42 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add fix behaviour to check command

parent 36c7a58a
...@@ -140,7 +140,7 @@ for opt in "$@" ; do ...@@ -140,7 +140,7 @@ for opt in "$@" ; do
-ql|filelist) # HELPCMD: print package file list -ql|filelist) # HELPCMD: print package file list
epm_cmd=filelist epm_cmd=filelist
;; ;;
check) # HELPCMD: check local package base integrity check|fix) # HELPCMD: check local package base integrity and fix it
epm_cmd=check epm_cmd=check
;; ;;
checkpkg|integrity) # HELPCMD: check package integrity checkpkg|integrity) # HELPCMD: check package integrity
......
...@@ -24,7 +24,9 @@ epm_check() ...@@ -24,7 +24,9 @@ epm_check()
{ {
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
docmd $SUDO apt-get check || exit #docmd $SUDO apt-get check || exit
docmd $SUDO apt-get update || exit
docmd $SUDO apt-get -f install || exit
;; ;;
apt-dpkg) apt-dpkg)
docmd $SUDO apt-get update || exit docmd $SUDO apt-get update || exit
......
...@@ -25,11 +25,11 @@ epm_update() ...@@ -25,11 +25,11 @@ epm_update()
case $PMTYPE in case $PMTYPE in
"apt-rpm") "apt-rpm")
docmd $SUDO apt-get update || exit docmd $SUDO apt-get update || exit
docmd $SUDO apt-get -f install || exit #docmd $SUDO apt-get -f install || exit
;; ;;
"apt-dpkg") "apt-dpkg")
docmd $SUDO apt-get update || exit docmd $SUDO apt-get update || exit
docmd $SUDO apt-get -f install || exit #docmd $SUDO apt-get -f install || exit
#docmd $SUDO apt-get autoremove #docmd $SUDO apt-get autoremove
;; ;;
urpm-rpm) urpm-rpm)
......
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