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
6f5e8d23
Commit
6f5e8d23
authored
Mar 19, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-repolist: fix result code for list without grep
parent
8e7870bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
epm-repolist
bin/epm-repolist
+10
-2
No files found.
bin/epm-repolist
View file @
6f5e8d23
...
...
@@ -25,10 +25,13 @@ __print_apt_sources_list()
local
regexp
=
"
$2
"
shift
2
local
i
local
res
=
1
[
-n
"
$regexp
"
]
||
res
=
0
for
i
in
$@
;
do
test
-r
"
$i
"
||
continue
grep
-v
--
"^.*#"
$i
done
|
grep
-v
--
"^ *
\$
"
|
grep
$grepflags
"
$regexp
"
done
|
grep
-v
--
"^ *
\$
"
|
grep
$grepflags
"
$regexp
"
&&
res
=
0
return
$res
}
__print_apt_sources_list_full
()
...
...
@@ -37,10 +40,13 @@ __print_apt_sources_list_full()
local
regexp
=
"
$2
"
shift
2
local
i
local
res
=
1
[
-n
"
$regexp
"
]
||
res
=
0
for
i
in
$@
;
do
test
-r
"
$i
"
||
continue
grep
--
"^[[:space:]]*#*[[:space:]]*rpm"
$i
done
|
grep
-v
--
"^ *
\$
"
|
grep
$grepflags
"
$regexp
"
done
|
grep
-v
--
"^ *
\$
"
|
grep
$grepflags
"
$regexp
"
&&
res
=
0
return
$res
}
# TODO: remove
...
...
@@ -68,6 +74,7 @@ __print_apt_sources_list_verbose()
shift
2
local
i
local
res
=
1
[
-n
"
$regexp
"
]
||
res
=
0
for
i
in
$@
;
do
test
-r
"
$i
"
||
continue
grep
-v
--
"^.*#"
$i
|
grep
-v
--
"^ *
\$
"
|
grep
-q
.
&&
__info_cyan
"
$i
:"
||
continue
...
...
@@ -83,6 +90,7 @@ __print_apt_sources_list_verbose_full()
shift
2
local
i
local
res
=
1
[
-n
"
$regexp
"
]
||
res
=
0
for
i
in
$@
;
do
test
-r
"
$i
"
||
continue
grep
--
"^[[:space:]]*#*[[:space:]]*rpm"
$i
|
grep
-v
--
"^ *
\$
"
|
grep
-q
.
&&
echo
&&
__info_cyan
"
$i
:"
||
continue
...
...
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