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
214ab747
Commit
214ab747
authored
Jun 03, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add initial support for appget and winget
parent
5972d14d
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
84 additions
and
7 deletions
+84
-7
epm-addrepo
bin/epm-addrepo
+3
-0
epm-clean
bin/epm-clean
+3
-0
epm-info
bin/epm-info
+6
-0
epm-install
bin/epm-install
+14
-2
epm-packages
bin/epm-packages
+9
-2
epm-remove
bin/epm-remove
+12
-0
epm-removerepo
bin/epm-removerepo
+3
-0
epm-repo
bin/epm-repo
+4
-0
epm-repolist
bin/epm-repolist
+3
-0
epm-reposave
bin/epm-reposave
+13
-0
epm-search
bin/epm-search
+5
-2
epm-sh-functions
bin/epm-sh-functions
+3
-1
epm-update
bin/epm-update
+3
-0
epm-upgrade
bin/epm-upgrade
+3
-0
No files found.
bin/epm-addrepo
View file @
214ab747
...
@@ -161,6 +161,9 @@ case $PMTYPE in
...
@@ -161,6 +161,9 @@ case $PMTYPE in
npackd
)
npackd
)
sudocmd npackdcl add-repo
--url
=
"
$repo
"
sudocmd npackdcl add-repo
--url
=
"
$repo
"
;;
;;
winget
)
sudocmd winget
source
add
"
$repo
"
;;
slackpkg
)
slackpkg
)
info
"You need manually add repo to /etc/slackpkg/mirrors"
info
"You need manually add repo to /etc/slackpkg/mirrors"
;;
;;
...
...
bin/epm-clean
View file @
214ab747
...
@@ -80,6 +80,9 @@ case $PMTYPE in
...
@@ -80,6 +80,9 @@ case $PMTYPE in
pkgng
)
pkgng
)
sudocmd pkg clean
-a
sudocmd pkg clean
-a
;;
;;
appget|winget
)
sudocmd
$PMTYPE
clean
;;
xbps
)
xbps
)
sudocmd xbps-remove
-O
sudocmd xbps-remove
-O
;;
;;
...
...
bin/epm-info
View file @
214ab747
...
@@ -134,6 +134,12 @@ case $PMTYPE in
...
@@ -134,6 +134,12 @@ case $PMTYPE in
aptcyg
)
aptcyg
)
docmd apt-cyg show
$pkg_names
docmd apt-cyg show
$pkg_names
;;
;;
winget
)
docmd winget show
$pkg_names
;;
appget
)
docmd appget view
$pkg_names
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
;;
;;
...
...
bin/epm-install
View file @
214ab747
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2012-20
19
Etersoft
# Copyright (C) 2012-20
20
Etersoft
# Copyright (C) 2012-20
19
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-20
20
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -201,6 +201,9 @@ epm_install_names()
...
@@ -201,6 +201,9 @@ epm_install_names()
xbps
)
xbps
)
sudocmd xbps-install
$@
sudocmd xbps-install
$@
return
;;
return
;;
appget|winget
)
sudocmd
$PMTYPE
install
$@
return
;;
*
)
*
)
fatal
"Have no suitable install command for
$PMTYPE
"
fatal
"Have no suitable install command for
$PMTYPE
"
;;
;;
...
@@ -273,6 +276,9 @@ epm_ni_install_names()
...
@@ -273,6 +276,9 @@ epm_ni_install_names()
xbps
)
xbps
)
sudocmd xbps-install
-y
$@
sudocmd xbps-install
-y
$@
return
;;
return
;;
appget|winget
)
sudocmd
$PMTYPE
-s
install
$@
return
;;
homebrew
)
homebrew
)
# FIXME: sudo and quote
# FIXME: sudo and quote
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
$@
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
$@
...
@@ -494,6 +500,9 @@ epm_print_install_command()
...
@@ -494,6 +500,9 @@ epm_print_install_command()
xbps
)
xbps
)
echo
"xbps-install -y
$*
"
echo
"xbps-install -y
$*
"
;;
;;
appget|winget
)
echo
"
$PMTYPE
install -s
$*
"
;;
homebrew
)
homebrew
)
# FIXME: sudo and quote
# FIXME: sudo and quote
echo
"brew install
$*
"
echo
"brew install
$*
"
...
@@ -541,6 +550,9 @@ epm_print_install_names_command()
...
@@ -541,6 +550,9 @@ epm_print_install_names_command()
nix
)
nix
)
echo
"nix-env --install
$*
"
echo
"nix-env --install
$*
"
return
;;
return
;;
appget|winget
)
echo
"
$PMTYPE
install
$*
"
return
;;
*
)
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
;;
...
...
bin/epm-packages
View file @
214ab747
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2012, 2016, 2017 Etersoft
# Copyright (C) 2012, 2016, 2017
, 2020
Etersoft
# Copyright (C) 2012, 2016, 2017 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012, 2016, 2017
, 2020
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -146,6 +146,13 @@ case $PMTYPE in
...
@@ -146,6 +146,13 @@ case $PMTYPE in
guix
)
guix
)
CMD
=
"guix package -I"
CMD
=
"guix package -I"
;;
;;
appget
)
CMD
=
"appget list"
;;
winget
)
info
"Use appget instead of winget"
return
0
;;
xbps
)
xbps
)
CMD
=
"xbps-query -l"
CMD
=
"xbps-query -l"
showcmd
$CMD
showcmd
$CMD
...
...
bin/epm-remove
View file @
214ab747
...
@@ -52,6 +52,9 @@ epm_remove_low()
...
@@ -52,6 +52,9 @@ epm_remove_low()
pacman
)
pacman
)
sudocmd pacman
-R
$@
sudocmd pacman
-R
$@
return
;;
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
$@
return
;;
slackpkg
)
slackpkg
)
sudocmd /sbin/removepkg
$@
sudocmd /sbin/removepkg
$@
return
;;
return
;;
...
@@ -145,6 +148,9 @@ epm_remove_names()
...
@@ -145,6 +148,9 @@ epm_remove_names()
xbps
)
xbps
)
sudocmd xbps remove
-R
$@
sudocmd xbps remove
-R
$@
return
;;
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
$@
return
;;
opkg
)
opkg
)
# shellcheck disable=SC2046
# shellcheck disable=SC2046
sudocmd opkg
$(
subst_option force
-force-depends
)
remove
$@
sudocmd opkg
$(
subst_option force
-force-depends
)
remove
$@
...
@@ -197,6 +203,9 @@ epm_remove_nonint()
...
@@ -197,6 +203,9 @@ epm_remove_nonint()
opkg
)
opkg
)
sudocmd opkg
-force-defaults
remove
$@
sudocmd opkg
-force-defaults
remove
$@
return
;;
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
-s
$@
return
;;
xbps
)
xbps
)
sudocmd xbps remove
-y
$@
sudocmd xbps remove
-y
$@
return
;;
return
;;
...
@@ -240,6 +249,9 @@ epm_print_remove_command()
...
@@ -240,6 +249,9 @@ epm_print_remove_command()
xbps
)
xbps
)
echo
"xbps remove -y
$*
"
echo
"xbps remove -y
$*
"
;;
;;
appget|winget
)
echo
$PMTYPE
uninstall
-s
$*
"
;;
*)
*)
fatal "
Have no suitable appropriate remove
command
for
$PMTYPE
"
fatal "
Have no suitable appropriate remove
command
for
$PMTYPE
"
;;
;;
...
...
bin/epm-removerepo
View file @
214ab747
...
@@ -107,6 +107,9 @@ case $PMTYPE in
...
@@ -107,6 +107,9 @@ case $PMTYPE in
npackd
)
npackd
)
sudocmd npackdcl remove-repo
--url
=
"
$@
"
sudocmd npackdcl remove-repo
--url
=
"
$@
"
;;
;;
winget
)
sudocmd winget
source
remove
"
$@
"
;;
slackpkg
)
slackpkg
)
info
"You need remove repo from /etc/slackpkg/mirrors"
info
"You need remove repo from /etc/slackpkg/mirrors"
;;
;;
...
...
bin/epm-repo
View file @
214ab747
...
@@ -48,6 +48,10 @@ epm_repo()
...
@@ -48,6 +48,10 @@ epm_repo()
load_helper epm-reposave
load_helper epm-reposave
epm_reporestore
"
$@
"
epm_reporestore
"
$@
"
;;
;;
reset
)
load_helper epm-reposave
epm_reporeset
"
$@
"
;;
add
)
# HELPCMD: add package repo (etersoft, autoimports, archive 2017/12/31); run with param to get list
add
)
# HELPCMD: add package repo (etersoft, autoimports, archive 2017/12/31); run with param to get list
load_helper epm-addrepo
load_helper epm-addrepo
epm_addrepo
"
$@
"
epm_addrepo
"
$@
"
...
...
bin/epm-repolist
View file @
214ab747
...
@@ -70,6 +70,9 @@ case $PMTYPE in
...
@@ -70,6 +70,9 @@ case $PMTYPE in
xbps
)
xbps
)
docmd xbps-query
-L
docmd xbps-query
-L
;;
;;
winget
)
docmd winget
source
list
;;
pacman
)
pacman
)
docmd
grep
-v
--
"^#
\|
^$"
/etc/pacman.conf
docmd
grep
-v
--
"^#
\|
^$"
/etc/pacman.conf
;;
;;
...
...
bin/epm-reposave
View file @
214ab747
...
@@ -44,3 +44,16 @@ case $PMTYPE in
...
@@ -44,3 +44,16 @@ case $PMTYPE in
esac
esac
}
}
epm_reporeset
()
{
case
$PMTYPE
in
winget
)
sudocmd winget
source
reset
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
esac
}
bin/epm-search
View file @
214ab747
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2012, 2013, 2016-20
19
Etersoft
# Copyright (C) 2012, 2013, 2016-20
20
Etersoft
# Copyright (C) 2012, 2013, 2016-20
19
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012, 2013, 2016-20
20
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -112,6 +112,9 @@ case $PMTYPE in
...
@@ -112,6 +112,9 @@ case $PMTYPE in
xbps
)
xbps
)
CMD
=
"xbps-query -s"
CMD
=
"xbps-query -s"
;;
;;
appget|winget
)
CMD
=
"
$PMTYPE
search"
;;
*
)
*
)
fatal
"Have no suitable search command for
$PMTYPE
"
fatal
"Have no suitable search command for
$PMTYPE
"
;;
;;
...
...
bin/epm-sh-functions
View file @
214ab747
...
@@ -533,7 +533,9 @@ case $DISTRNAME in
...
@@ -533,7 +533,9 @@ case $DISTRNAME in
CMD
=
"conary"
CMD
=
"conary"
;;
;;
Windows
)
Windows
)
CMD
=
"chocolatey"
CMD
=
"appget"
which
$CMD
2>/dev/null
>
/dev/null
||
CMD
=
"chocolatey"
which
$CMD
2>/dev/null
>
/dev/null
||
CMD
=
"winget"
;;
;;
MacOS
)
MacOS
)
CMD
=
"homebrew"
CMD
=
"homebrew"
...
...
bin/epm-update
View file @
214ab747
...
@@ -98,6 +98,9 @@ case $PMTYPE in
...
@@ -98,6 +98,9 @@ case $PMTYPE in
xbps
)
xbps
)
sudocmd xbps-install
-S
sudocmd xbps-install
-S
;;
;;
winget
)
sudocmd winget
source
update
;;
*
)
*
)
fatal
"Have no suitable update command for
$PMTYPE
"
fatal
"Have no suitable update command for
$PMTYPE
"
;;
;;
...
...
bin/epm-upgrade
View file @
214ab747
...
@@ -118,6 +118,9 @@ epm_upgrade()
...
@@ -118,6 +118,9 @@ epm_upgrade()
guix
)
guix
)
CMD
=
"guix package -u"
CMD
=
"guix package -u"
;;
;;
appget|winget
)
CMD
=
"
$PMTYPE
update-all"
;;
aptcyg
)
aptcyg
)
# shellcheck disable=SC2046
# shellcheck disable=SC2046
docmd_foreach
"epm install"
$(
short
=
1 epm packages
)
docmd_foreach
"epm install"
$(
short
=
1 epm packages
)
...
...
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