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
137524b6
Commit
137524b6
authored
Aug 16, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-search: fix support regexp not for apt only
parent
f590251d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
epm-search
bin/epm-search
+11
-1
No files found.
bin/epm-search
View file @
137524b6
...
...
@@ -23,7 +23,7 @@ load_helper epm-sh-warmup
__epm_search_output
()
{
local
CMD
local
string
=
"
$
1
"
local
string
=
"
$
*
"
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
CMD
=
"apt-cache search --"
...
...
@@ -147,6 +147,16 @@ __epm_search_make_grep()
#list=$(strip_spaces $list | sed -e "s/ /|/g")
listN
=
$(
strip_spaces
$listN
|
sed
-e
"s/ /|/g"
|
sed
-e
"s/~//g"
)
# only apt supports regexps?
case
$PMTYPE
in
apt-
*
)
;;
*
)
list
=
$(
echo
"
$list
"
|
sed
-e
"s/[?
\^
.]/ /g"
)
listN
=
$(
echo
"
$listN
"
|
sed
-e
"s/[?
\^
.]/ /g"
)
;;
esac
if
[
-n
"
$short
"
]
;
then
echon
" | sed -e
\"
s| .*||g
\"
"
fi
...
...
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