Commit 85694731 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add initial android support

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