Commit 4b153e1f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add alias refresh for update command

parent 2f3302ca
...@@ -333,7 +333,7 @@ check_command() ...@@ -333,7 +333,7 @@ check_command()
;; ;;
# HELPCMD: PART: Repository control: # HELPCMD: PART: Repository control:
update|update-repo|ur) # HELPCMD: update remote package repository databases update|refresh|update-repo|ur) # HELPCMD: update remote package repository databases
epm_cmd=update epm_cmd=update
direct_args=1 direct_args=1
;; ;;
......
...@@ -141,6 +141,9 @@ epm_install_names() ...@@ -141,6 +141,9 @@ epm_install_names()
echo "$*" | grep -q "^kernel-" && VIRTAPTOPTIONS='' echo "$*" | grep -q "^kernel-" && VIRTAPTOPTIONS=''
sudocmd apt-get $VIRTAPTOPTIONS $APTOPTIONS $noremove install $@ && save_installed_packages $@ sudocmd apt-get $VIRTAPTOPTIONS $APTOPTIONS $noremove install $@ && save_installed_packages $@
return ;; return ;;
apm)
sudocmd apm system install $@
return ;;
aptitude-dpkg) aptitude-dpkg)
sudocmd aptitude install $@ sudocmd aptitude install $@
return ;; return ;;
......
...@@ -99,6 +99,9 @@ epm_remove_names() ...@@ -99,6 +99,9 @@ epm_remove_names()
apt-dpkg) apt-dpkg)
sudocmd apt-get remove --purge $APTOPTIONS $@ sudocmd apt-get remove --purge $APTOPTIONS $@
return ;; return ;;
apm)
sudocmd apm system remove $@
return ;;
aptitude-dpkg) aptitude-dpkg)
sudocmd aptitude purge $@ sudocmd aptitude purge $@
return ;; return ;;
......
...@@ -121,6 +121,9 @@ case $PMTYPE in ...@@ -121,6 +121,9 @@ case $PMTYPE in
# apt-get update retrieve Contents file too # apt-get update retrieve Contents file too
#sudocmd apt-file update #sudocmd apt-file update
;; ;;
apm)
sudocmd apm system update
;;
packagekit) packagekit)
docmd pkcon refresh docmd pkcon refresh
;; ;;
......
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