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
Vladislav
eepm
Commits
c07fb561
Commit
c07fb561
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add --list-installed-packages
parent
d5ea8166
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
epm-play
bin/epm-play
+22
-7
No files found.
bin/epm-play
View file @
c07fb561
...
...
@@ -111,6 +111,18 @@ __list_installed_app()
cat
$epm_vardir
/installed-app 2>/dev/null
}
__list_installed_packages
()
{
local
i
local
tapt
=
$(
mktemp
)
||
fatal
__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
grep
"^
$i
"
$tapt
|
cut
-f1
-d
" "
done
rm
-f
$tapt
}
__get_app_description
()
{
...
...
@@ -269,24 +281,27 @@ if [ "$1" = "--installed" ] || [ "$1" = "installed" ] ; then
exit
fi
# common internal options
case
"
$1
"
in
# internal options
"--installed-version"
|
"--package-name"
|
"--product-alternatives"
)
__run_script
"
$2
"
"
$1
"
"
$3
"
exit
;;
"--list-installed-packages"
)
__list_installed_packages
exit
;;
"--list"
|
"--list-installed"
|
"list"
|
"list-installed"
)
__epm_play_list_installed
exit
;;
# internal options
"--help"
|
"help"
)
__run_script
"
$2
"
"
$1
"
"
$3
"
exit
;;
esac
if
[
"
$1
"
=
"--list"
]
||
[
"
$1
"
=
"--list-installed"
]
||
[
"
$1
"
=
"list"
]
||
[
"
$1
"
=
"list-installed"
]
;
then
__epm_play_list_installed
exit
fi
if
[
"
$1
"
=
"--list-all"
]
||
[
"
$1
"
=
"list-all"
]
||
[
-z
"
$*
"
]
;
then
[
-n
"
$short
"
]
||
[
-n
"
$quiet
"
]
||
echo
"Available applications:"
__epm_play_list
$psdir
...
...
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