Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
7cde2258
Commit
7cde2258
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for termux-pkg
parent
ac3da935
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
40 additions
and
3 deletions
+40
-3
distr_info
bin/distr_info
+1
-0
epm-addrepo
bin/epm-addrepo
+3
-0
epm-clean
bin/epm-clean
+3
-0
epm-filelist
bin/epm-filelist
+3
-0
epm-info
bin/epm-info
+3
-0
epm-install
bin/epm-install
+12
-3
epm-packages
bin/epm-packages
+3
-0
epm-reinstall
bin/epm-reinstall
+3
-0
epm-remove
bin/epm-remove
+3
-0
epm-search
bin/epm-search
+3
-0
epm-upgrade
bin/epm-upgrade
+3
-0
No files found.
bin/distr_info
View file @
7cde2258
...
@@ -190,6 +190,7 @@ case $DISTRIB_ID in
...
@@ -190,6 +190,7 @@ case $DISTRIB_ID in
;;
;;
Android
)
Android
)
CMD
=
"android"
CMD
=
"android"
# TODO: CMD="termux-pkg"
;;
;;
Cygwin
)
Cygwin
)
CMD
=
"aptcyg"
CMD
=
"aptcyg"
...
...
This diff is collapsed.
Click to expand it.
bin/epm-addrepo
View file @
7cde2258
...
@@ -496,6 +496,9 @@ case $PMTYPE in
...
@@ -496,6 +496,9 @@ case $PMTYPE in
winget
)
winget
)
sudocmd winget
source
add
"
$repo
"
sudocmd winget
source
add
"
$repo
"
;;
;;
termux-pkg
)
sudocmd pkg
install
"
$repo
"
;;
slackpkg
)
slackpkg
)
info
"You need manually add repo to /etc/slackpkg/mirrors"
info
"You need manually add repo to /etc/slackpkg/mirrors"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-clean
View file @
7cde2258
...
@@ -89,6 +89,9 @@ case $PMTYPE in
...
@@ -89,6 +89,9 @@ case $PMTYPE in
xbps
)
xbps
)
sudocmd xbps-remove
-O
sudocmd xbps-remove
-O
;;
;;
termux-pkg
)
sudocmd pkg clean
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-filelist
View file @
7cde2258
...
@@ -135,6 +135,9 @@ __epm_filelist_name()
...
@@ -135,6 +135,9 @@ __epm_filelist_name()
android
)
android
)
CMD
=
"pm list packages -f"
CMD
=
"pm list packages -f"
;;
;;
termux-pkg
)
CMD
=
"pkg files"
;;
conary
)
conary
)
CMD
=
"conary query --ls"
CMD
=
"conary query --ls"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-info
View file @
7cde2258
...
@@ -146,6 +146,9 @@ case $PMTYPE in
...
@@ -146,6 +146,9 @@ case $PMTYPE in
appget
)
appget
)
docmd appget view
$pkg_names
docmd appget view
$pkg_names
;;
;;
termux-pkg
)
docmd pkg show
$pkg_names
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-install
View file @
7cde2258
...
@@ -161,6 +161,9 @@ epm_install_names()
...
@@ -161,6 +161,9 @@ epm_install_names()
guix
)
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
return
;;
termux-pkg
)
sudocmd pkg
install
$@
return
;;
android
)
android
)
fatal
"We still have no idea how to use package repository, ever if it is F-Droid."
fatal
"We still have no idea how to use package repository, ever if it is F-Droid."
return
;;
return
;;
...
@@ -257,9 +260,9 @@ epm_ni_install_names()
...
@@ -257,9 +260,9 @@ epm_ni_install_names()
# FIXME: sudo and quote
# FIXME: sudo and quote
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
$@
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
$@
return
;;
return
;;
#android
)
termux-pkg
)
# sudocmd pm
install $@
sudocmd pkg
install
$@
#
return ;;
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"
$@
...
@@ -593,6 +596,9 @@ epm_print_install_command()
...
@@ -593,6 +596,9 @@ epm_print_install_command()
android
)
android
)
echo
"pm install
$*
"
echo
"pm install
$*
"
;;
;;
termux-pkg
)
echo
"pkg install
$*
"
;;
aptcyg
)
aptcyg
)
echo
"apt-cyg install
$*
"
echo
"apt-cyg install
$*
"
;;
;;
...
@@ -659,6 +665,9 @@ epm_print_install_names_command()
...
@@ -659,6 +665,9 @@ epm_print_install_names_command()
eopkg
)
eopkg
)
echo
"eopkg install
$*
"
echo
"eopkg install
$*
"
return
;;
return
;;
termux-pkg
)
echo
"pkg install
$*
"
return
;;
appget|winget
)
appget|winget
)
echo
"
$PMTYPE
install
$*
"
echo
"
$PMTYPE
install
$*
"
return
;;
return
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-packages
View file @
7cde2258
...
@@ -156,6 +156,9 @@ case $PMTYPE in
...
@@ -156,6 +156,9 @@ case $PMTYPE in
info
"Use appget instead of winget"
info
"Use appget instead of winget"
return
0
return
0
;;
;;
termux-pkg
)
docmd pkg list-installed
;;
xbps
)
xbps
)
CMD
=
"xbps-query -l"
CMD
=
"xbps-query -l"
showcmd
$CMD
showcmd
$CMD
...
...
This diff is collapsed.
Click to expand it.
bin/epm-reinstall
View file @
7cde2258
...
@@ -49,6 +49,9 @@ epm_reinstall_names()
...
@@ -49,6 +49,9 @@ epm_reinstall_names()
pkgng
)
pkgng
)
sudocmd pkg
install
-f
$@
sudocmd pkg
install
-f
$@
return
;;
return
;;
termux-pkg
)
sudocmd pkg reinstall
$@
return
;;
opkg
)
opkg
)
sudocmd opkg
--force-reinstall
install
$@
sudocmd opkg
--force-reinstall
install
$@
return
;;
return
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-remove
View file @
7cde2258
...
@@ -155,6 +155,9 @@ epm_remove_names()
...
@@ -155,6 +155,9 @@ epm_remove_names()
android
)
android
)
sudocmd pm uninstall
$@
sudocmd pm uninstall
$@
return
;;
return
;;
termux-pkg
)
sudocmd pkg uninstall
$@
return
;;
chocolatey
)
chocolatey
)
sudocmd chocolatey uninstall
$@
sudocmd chocolatey uninstall
$@
return
;;
return
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-search
View file @
7cde2258
...
@@ -109,6 +109,9 @@ case $PMTYPE in
...
@@ -109,6 +109,9 @@ case $PMTYPE in
android
)
android
)
CMD
=
"pm list packages"
CMD
=
"pm list packages"
;;
;;
termux-pkg
)
CMD
=
"pkg search"
;;
aptcyg
)
aptcyg
)
CMD
=
"apt-cyg searchall"
CMD
=
"apt-cyg searchall"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-upgrade
View file @
7cde2258
...
@@ -171,6 +171,9 @@ epm_upgrade()
...
@@ -171,6 +171,9 @@ epm_upgrade()
xbps
)
xbps
)
CMD
=
"xbps-install -Su"
CMD
=
"xbps-install -Su"
;;
;;
termux-pkg
)
CMD
=
"pkg upgrade"
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment