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
Nurlan
eepm
Commits
ab1f2ba5
Commit
ab1f2ba5
authored
Jul 23, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve opkg support
parent
2ccb246b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
43 additions
and
15 deletions
+43
-15
epm-autoremove
bin/epm-autoremove
+7
-0
epm-download
bin/epm-download
+5
-2
epm-filelist
bin/epm-filelist
+5
-2
epm-packages
bin/epm-packages
+1
-1
epm-query_file
bin/epm-query_file
+1
-1
epm-reinstall
bin/epm-reinstall
+3
-0
epm-requires
bin/epm-requires
+5
-2
epm-search
bin/epm-search
+5
-2
epm-search_file
bin/epm-search_file
+1
-1
epm-simulate
bin/epm-simulate
+5
-2
epm-whatdepends
bin/epm-whatdepends
+5
-2
No files found.
bin/epm-autoremove
View file @
ab1f2ba5
...
...
@@ -254,6 +254,13 @@ case $PMTYPE in
fi
sudocmd xbps-remove
-O
;;
opkg
)
if
[
-n
"
$dryrun
"
]
;
then
sudocmd opkg
--noaction
--autoremove
else
sudocmd opkg
--autoremove
fi
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-download
View file @
ab1f2ba5
#!/bin/sh
#
# Copyright (C) 2016-201
7
Etersoft
# Copyright (C) 2016-201
7
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2016-201
8
Etersoft
# Copyright (C) 2016-201
8
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -212,6 +212,9 @@ epm_download()
tce
)
sudocmd tce-load
-w
$pkg_filenames
;;
opkg
)
docmd opkg
$pkg_filenames
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-filelist
View file @
ab1f2ba5
#!/bin/sh
#
# Copyright (C) 2012-201
7
Etersoft
# Copyright (C) 2012-201
7
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-201
8
Etersoft
# Copyright (C) 2012-201
8
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -140,6 +140,9 @@ __epm_filelist_name()
pkgng
)
CMD
=
"pkg info -l"
;;
opkg
)
CMD
=
"opkg files"
;;
xbps
)
CMD
=
"xbps-query -f"
;;
...
...
bin/epm-packages
View file @
ab1f2ba5
...
...
@@ -139,7 +139,7 @@ case $PMTYPE in
docmd brew list | xargs
-n1
echo
;;
opkg
)
CMD
=
"opkg list"
CMD
=
"opkg list
-installed
"
;;
apk
)
CMD
=
"apk info"
...
...
bin/epm-query_file
View file @
ab1f2ba5
...
...
@@ -110,7 +110,7 @@ __do_query()
return
;;
opkg
)
CMD
=
"opkg
files
"
CMD
=
"opkg
search
"
;;
xbps
)
# FIXME: maybe it is search file?
...
...
bin/epm-reinstall
View file @
ab1f2ba5
...
...
@@ -42,6 +42,9 @@ epm_reinstall_names()
pkgng
)
sudocmd pkg
install
-f
$@
return
;;
opkg
)
sudocmd opkg
--force-reinstall
install
$@
return
;;
slackpkg
)
sudocmd_foreach
"/usr/sbin/slackpkg reinstall"
$@
return
;;
...
...
bin/epm-requires
View file @
ab1f2ba5
#!/bin/sh
#
# Copyright (C) 2012-2013, 2016 Etersoft
# Copyright (C) 2012-2013, 2016 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-2013, 2016
, 2018
Etersoft
# Copyright (C) 2012-2013, 2016
, 2018
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -105,6 +105,9 @@ case $PMTYPE in
#CMD="pkg rquery '%dn-%dv'"
CMD
=
"pkg info -d"
;;
opkg
)
CMD
=
"opkg depends"
;;
xbps
)
CMD
=
"xbps-query -x"
;;
...
...
bin/epm-search
View file @
ab1f2ba5
#!/bin/sh
#
# Copyright (C) 2012, 2013, 2016-201
7
Etersoft
# Copyright (C) 2012, 2013, 2016-201
7
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012, 2013, 2016-201
8
Etersoft
# Copyright (C) 2012, 2013, 2016-201
8
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -91,6 +91,9 @@ case $PMTYPE in
return
fi
;;
opkg
)
CMD
=
"opkg find"
;;
homebrew
)
CMD
=
"brew search"
;;
...
...
bin/epm-search_file
View file @
ab1f2ba5
...
...
@@ -84,7 +84,7 @@ case $PMTYPE in
CMD
=
"/usr/sbin/slackpkg file-search"
;;
opkg
)
CMD
=
"opkg search"
CMD
=
"opkg
-A
search"
;;
xbps
)
CMD
=
"xbps-query -Ro"
...
...
bin/epm-simulate
View file @
ab1f2ba5
#!/bin/sh
#
# Copyright (C) 2012-2015 Etersoft
# Copyright (C) 2012-2015 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-2015
, 2018
Etersoft
# Copyright (C) 2012-2015
, 2018
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -103,6 +103,9 @@ EOF
break
done
return
$res
;;
opkg
)
docmd
--noaction
install
$filenames
return
$res
;;
pacman
)
LC_ALL
=
C store_output sudocmd pacman
-v
-S
$filenames
<<
EOF
no
...
...
bin/epm-whatdepends
View file @
ab1f2ba5
#!/bin/sh
#
# Copyright (C) 2013, 2016 Etersoft
# Copyright (C) 2013, 2016 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2016
, 2018
Etersoft
# Copyright (C) 2013, 2016
, 2018
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -59,6 +59,9 @@ case $PMTYPE in
aptcyg
)
CMD
=
"apt-cyg rdepends"
;;
opkg
)
CMD
=
"opkg whatdepends"
;;
xbps
)
CMD
=
"xbps-query -X"
;;
...
...
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