Commit 85694731 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add initial android support

parent ef607aed
......@@ -103,6 +103,9 @@ __epm_filelist_name()
zypper-rpm)
CMD="rpm -ql"
;;
android)
CMD="pm list packages -f"
;;
conary)
CMD="conary query --ls"
;;
......
......@@ -146,6 +146,9 @@ epm_install_names()
guix)
__separate_sudocmd "guix package -i" "guix package -i" $@
return ;;
guix)
__separate_sudocmd "guix package -i" "guix package -i" $@
return ;;
*)
fatal "Have no suitable install command for $PMTYPE"
;;
......@@ -196,6 +199,9 @@ epm_ni_install_names()
nix)
sudocmd nix-env --install $@
return ;;
android
sudocmd pm install $@
return ;;
slackpkg)
# FIXME: broken status when use batch and default answer
__separate_sudocmd_foreach "/usr/sbin/slackpkg -batch=on -default_answer=yes install" "/usr/sbin/slackpkg -batch=on -default_answer=yes upgrade" $@
......@@ -285,6 +291,9 @@ epm_install_files()
pkgsrc)
sudocmd pkg_add $@
return ;;
android)
sudocmd pm install $@
return ;;
emerge)
load_helper epm-install-emerge
sudocmd epm_install_emerge $@
......@@ -335,6 +344,9 @@ epm_print_install_command()
ipkg)
echo "ipkg install $@"
;;
android)
echo "pm install $@"
;;
*)
fatal "Have no suitable appropriate install command for $PMTYPE"
;;
......
......@@ -96,6 +96,11 @@ case $PMTYPE in
guix)
CMD="guix package -I"
;;
android)
CMD="pm list packages"
docmd $CMD | sed -e "s|^package:||g"
return
;;
*)
fatal "Have no suitable query command for $PMTYPE"
;;
......
......@@ -97,6 +97,9 @@ epm_remove_names()
guix)
sudocmd guix package -r $@
return ;;
android)
sudocmd pm uninstall $@
return ;;
chocolatey)
sudocmd chocolatey uninstall $@
return ;;
......
......@@ -74,6 +74,9 @@ case $PMTYPE in
guix)
CMD="guix package -A"
;;
android)
CMD="pm list packages"
;;
*)
fatal "Have no suitable search command for $PMTYPE"
;;
......
......@@ -370,6 +370,9 @@ case $DISTRNAME in
GNU/Linux/Guix)
CMD="guix"
;;
Android)
CMD="android"
;;
*)
fatal "Have no suitable DISTRNAME $DISTRNAME"
;;
......
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