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
ec0f8612
Commit
ec0f8612
authored
Mar 12, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-removerepo: fix all removing
parent
aa2e295f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
epm-removerepo
bin/epm-removerepo
+9
-5
No files found.
bin/epm-removerepo
View file @
ec0f8612
...
...
@@ -55,17 +55,21 @@ __epm_grep_repo_list()
# remove grepped lines
__epm_removerepo_alt_grepremove
()
{
local
rl
local
rl
=
"
$1
"
if
[
"
$rl
"
=
"all"
]
;
then
rl
=
".*"
fi
# ^rpm means full string
if
[
"
$1
"
=
"all"
]
||
rhas
"
$1
"
"^rpm"
;
then
rl
=
"
$1
"
else
if
!
rhas
"
$1
"
"^rpm"
;
then
rl
=
"
$(
__epm_grep_repo_list
"
$@
"
2>/dev/null
)
"
if
[
-z
"
$rl
"
]
;
then
[
-n
"
$verbose
"
]
&&
warning
'Can'
\'
't find '
$*
' in the repos (see # epm repolist output)'
return
1
fi
fi
echo
"
$rl
"
|
while
read
rp
;
do
__epm_removerepo_apt
"
$rp
"
done
...
...
@@ -117,7 +121,7 @@ __epm_removerepo_alt()
fatal
"epm removerepo: no options are supported"
;;
*
)
if
echo
"
$*
"
|
grep
-q
"^rpm"
]
;
then
if
echo
"
$*
"
|
grep
-q
"^rpm"
;
then
__epm_removerepo_apt
"
$*
"
else
info
"removing source.list entries by mask '
$*
'"
...
...
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