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
e095c71c
Commit
e095c71c
authored
May 09, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play --list-installed-packages: print packages for hidden apps too
parent
1858eda7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
epm-play
bin/epm-play
+8
-2
common.sh
play.d/common.sh
+1
-1
No files found.
bin/epm-play
View file @
e095c71c
...
...
@@ -99,6 +99,7 @@ __list_installed_app()
{
local
i
local
tapt
=
"
$(
mktemp
)
"
||
fatal
remove_on_exit
$tapt
__list_app_packages_table
>
$tapt
# get all installed packages and convert it to a apps list
for
i
in
$(
epm query
--short
$(
cat
$tapt
|
sed
-e
's| .*$||'
)
2>/dev/null
)
;
do
...
...
@@ -114,8 +115,9 @@ __list_installed_packages()
{
local
i
local
tapt
=
"
$(
mktemp
)
"
||
fatal
remove_on_exit
$tapt
__list_app_packages_table
>
$tapt
# get all installed packages
and convert it to a apps list
# get all installed packages
for
i
in
$(
epm query
--short
$(
cat
$tapt
|
sed
-e
's| .*$||'
)
2>/dev/null
)
;
do
grep
"^
$i
"
$tapt
|
cut
-f1
-d
" "
done
...
...
@@ -164,14 +166,18 @@ __epm_play_list_installed()
local
i
if
[
-n
"
$short
"
]
;
then
for
i
in
$(
__list_installed_app
)
;
do
# skip hidden apps
local
desc
=
"
$(
__get_app_description
$i
)
"
[
-n
"
$desc
"
]
||
continue
echo
"
$i
"
done
exit
fi
[
-n
"
$quiet
"
]
||
echo
"Installed applications:"
for
i
in
$(
__list_installed_app
)
;
do
# skip hidden apps
local
desc
=
"
$(
__get_app_description
$i
)
"
#
[ -n "$desc" ] || continue
[
-n
"
$desc
"
]
||
continue
[
-n
"
$quiet
"
]
||
echo
-n
" "
printf
"%-20s - %s
\n
"
"
$i
"
"
$desc
"
done
...
...
play.d/common.sh
View file @
e095c71c
...
...
@@ -213,7 +213,7 @@ case "$1" in
exit
;;
"--package-name"
)
[
-n
"
$DESCRIPTION
"
]
||
exit
0
#
[ -n "$DESCRIPTION" ] || exit 0
echo
"
$PKGNAME
"
exit
;;
...
...
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