Commit 90f8eac6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add apm support

parent 4b153e1f
...@@ -56,6 +56,9 @@ case $PMTYPE in ...@@ -56,6 +56,9 @@ case $PMTYPE in
is_installed $pkg_names && docmd dpkg -p $pkg_names && return is_installed $pkg_names && docmd dpkg -p $pkg_names && return
docmd apt-cache show $pkg_names docmd apt-cache show $pkg_names
;; ;;
apm)
docmd apm system info $pkg_names
;;
aptitude-dpkg) aptitude-dpkg)
if [ -n "$pkg_files" ] ; then if [ -n "$pkg_files" ] ; then
docmd dpkg -I $pkg_files docmd dpkg -I $pkg_files
......
...@@ -72,6 +72,10 @@ case $PMTYPE in ...@@ -72,6 +72,10 @@ case $PMTYPE in
docmd apt-cache search . docmd apt-cache search .
fi fi
;; ;;
apm)
# TODO: --format json?
CMD="apm system list --limit 100000"
;;
dnf-*) dnf-*)
warmup_rpmbase warmup_rpmbase
if [ -n "$short" ] ; then if [ -n "$short" ] ; then
......
...@@ -28,6 +28,10 @@ case $PMTYPE in ...@@ -28,6 +28,10 @@ case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
CMD="apt-cache search --" CMD="apt-cache search --"
;; ;;
apm)
docmd apm system search -- $string
return
;;
aptitude-dpkg) aptitude-dpkg)
CMD="aptitude search --" CMD="aptitude search --"
;; ;;
......
...@@ -141,6 +141,9 @@ epm_upgrade() ...@@ -141,6 +141,9 @@ epm_upgrade()
local APTOPTIONS="$dryrun $(subst_option non_interactive -y) $(subst_option debug "-V -o Debug::pkgMarkInstall=1 -o Debug::pkgProblemResolver=1")" local APTOPTIONS="$dryrun $(subst_option non_interactive -y) $(subst_option debug "-V -o Debug::pkgMarkInstall=1 -o Debug::pkgProblemResolver=1")"
CMD="apt-get $APTOPTIONS $noremove $force_yes dist-upgrade" CMD="apt-get $APTOPTIONS $noremove $force_yes dist-upgrade"
;; ;;
apm)
CMD="apm system upgrade"
;;
aptitude-dpkg) aptitude-dpkg)
CMD="aptitude dist-upgrade" CMD="aptitude dist-upgrade"
;; ;;
......
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