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
1
Merge Requests
1
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
58fb0ebd
Commit
58fb0ebd
authored
Mar 22, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: use fast list implementation
parent
85c201ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
epm-play-common
bin/epm-play-common
+21
-6
No files found.
bin/epm-play-common
View file @
58fb0ebd
...
...
@@ -122,12 +122,23 @@ __get_fast_short_list_app()
grep
-L
-E
"^DESCRIPTION=(''|
\"\"
)"
$psdir
/
*
.sh | xargs
grep
-l
-E
"^SUPPORTEDARCHES=(''|
\"\"
|.*
\<
$arch
\>
)"
| xargs
basename
-s
.sh |
grep
-v
-E
"(^
$IGNOREi586
|^common)"
}
__get_fast_int_list_app
()
{
local arch
=
"
$1
"
[
-n
"
$arch
"
]
||
fatal
local
IGNOREi586
local
RIFS
=
$'
\x
1E'
[
"
$arch
"
=
"x86_64"
]
&&
IGNOREi586
=
'NoNo'
||
IGNOREi586
=
'i586-'
grep
-l
-E
"^SUPPORTEDARCHES=(''|
\"\"
|.*
\<
$arch
\>
)"
$psdir
/
*
.sh | xargs
grep
-oP
"^DESCRIPTION=[
\"
']*
\K
[^
\"
']+"
|
sed
-e
"s|.*/
\(
.*
\)
.sh:|
\1
$RIFS
|"
|
grep
-v
-E
"(^
$IGNOREi586
|^common|#.*
$)
"
}
__epm_play_list
()
{
local
psdir
=
"
$1
"
local
extra
=
"
$2
"
local
i
local
IGNOREi586
local
RIFS
=
$'
\x
1E'
local arch
=
"
$SYSTEMARCH
"
[
"
$arch
"
=
"x86_64"
]
&&
IGNOREi586
=
''
||
IGNOREi586
=
1
...
...
@@ -143,14 +154,18 @@ __epm_play_list()
return
fi
for
i
in
$(
__list_all_app
)
;
do
local
desc
=
"
$(
__get_app_description
$i
$arch
)
"
[
-n
"
$desc
"
]
||
continue
if
[
-n
"
$quiet
"
]
&&
[
-z
"
$extra
"
]
;
then
__get_fast_int_list_app
$arch
|
sed
-e
"s|
$RIFS
| - |"
return
fi
__get_fast_int_list_app
$arch
|
while
IFS
=
$'
\x
1E'
read
-r
app desc
;
do
[
-n
"
$quiet
"
]
||
echo
-n
" "
printf
"%-20s - %s
\n
"
"
$i
"
"
$desc
"
if
[
-n
"
$extra
"
]
;
then
for
j
in
$(
__run_script
"
$i
"
"--product-alternatives"
)
;
do
printf
" %-20s - %s
\n
"
"
$i
=
$j
"
"
$desc
"
printf
"%-25s - %s
\n
"
"
$app
"
"
$desc
"
local
j
for
j
in
$(
__run_script
"
$app
"
"--product-alternatives"
</dev/null
)
;
do
printf
" %-25s - %s
\n
"
"
$app
=
$j
"
"
$desc
"
done
fi
done
...
...
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