Commit e31649d5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: fix autorequires

parent 091b2430
...@@ -141,4 +141,4 @@ set_pm_type ...@@ -141,4 +141,4 @@ set_pm_type
# Run helper for command # Run helper for command
[ -n "$epm_cmd" ] || fatal "Run without any command" [ -n "$epm_cmd" ] || fatal "Run without any command"
load_helper epm-$epm_cmd load_helper epm-$epm_cmd
epm_$epm_cmd epm_$epm_cmd || fatal ""
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
check_rpm_integrity() check_rpm_integrity()
{ {
rpm --checksig $@ >/dev/null a= rpm --checksig $@ >/dev/null
} }
check_deb_integrity() check_deb_integrity()
...@@ -30,7 +30,7 @@ check_deb_integrity() ...@@ -30,7 +30,7 @@ check_deb_integrity()
check_bz2_integrity() check_bz2_integrity()
{ {
bunzip -t $1 >/dev/null a= bunzip -t $1 >/dev/null
} }
check_tbz_integrity() check_tbz_integrity()
...@@ -40,7 +40,7 @@ check_tbz_integrity() ...@@ -40,7 +40,7 @@ check_tbz_integrity()
check_gz_integrity() check_gz_integrity()
{ {
gunzip -t $1 >/dev/null a= gunzip -t $1 >/dev/null
} }
check_tgz_integrity() check_tgz_integrity()
...@@ -55,7 +55,7 @@ check_zip_integrity() ...@@ -55,7 +55,7 @@ check_zip_integrity()
check_xz_integrity() check_xz_integrity()
{ {
xz -t $1 >/dev/null a= xz -t $1 >/dev/null
} }
check_exe_integrity() check_exe_integrity()
......
...@@ -24,13 +24,13 @@ epm_update() ...@@ -24,13 +24,13 @@ epm_update()
{ {
case $PMTYPE in case $PMTYPE in
"apt-rpm") "apt-rpm")
apt-get update || exit docmd $SUDO apt-get update || exit
apt-get -f install || exit docmd $SUDO apt-get -f install || exit
;; ;;
"apt-dpkg") "apt-dpkg")
apt-get update || exit docmd $SUDO apt-get update || exit
apt-get -f install || exit docmd $SUDO apt-get -f install || exit
apt-get autoremove docmd $SUDO apt-get autoremove
;; ;;
# skip, will do it automagically # skip, will do it automagically
# "LinuxXP"|"Fedora"|"ASPLinux"|"CentOS"|"RHEL"|"Scientific") # "LinuxXP"|"Fedora"|"ASPLinux"|"CentOS"|"RHEL"|"Scientific")
......
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