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
6f75ae4b
Commit
6f75ae4b
authored
Mar 19, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-removerepo: fix removing all repos, cleanup
parent
6f5e8d23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
epm-removerepo
bin/epm-removerepo
+13
-12
No files found.
bin/epm-removerepo
View file @
6f75ae4b
...
@@ -47,6 +47,10 @@ __epm_removerepo_apt()
...
@@ -47,6 +47,10 @@ __epm_removerepo_apt()
__epm_grep_repo_list
()
__epm_grep_repo_list
()
{
{
if
[
"
$1
"
=
"all"
]
;
then
epm
--quiet
repo list
return
fi
while
[
-n
"
$1
"
]
;
do
while
[
-n
"
$1
"
]
;
do
epm
--quiet
repo list
"
$1
"
epm
--quiet
repo list
"
$1
"
shift
shift
...
@@ -56,19 +60,12 @@ __epm_grep_repo_list()
...
@@ -56,19 +60,12 @@ __epm_grep_repo_list()
# remove grepped lines
# remove grepped lines
__epm_removerepo_alt_grepremove
()
__epm_removerepo_alt_grepremove
()
{
{
local
rl
=
"
$*
"
local
rl
if
[
"
$rl
"
=
"all"
]
;
then
rl
=
"*"
fi
# ^rpm means full string
rl
=
"
$(
__epm_grep_repo_list
"
$@
"
2>/dev/null
)
"
if
!
rhas
"
$rl
"
"^rpm"
;
then
if
[
-z
"
$rl
"
]
;
then
rl
=
"
$(
__epm_grep_repo_list
$rl
2>/dev/null
)
"
[
-n
"
$verbose
"
]
&&
warning
'Can'
\'
't find '
$*
' in the repos list (see # epm repolist output)'
if
[
-z
"
$rl
"
]
;
then
return
1
[
-n
"
$verbose
"
]
&&
warning
'Can'
\'
't find '
$*
' in the repos (see # epm repolist output)'
return
1
fi
fi
fi
echo
"
$rl
"
|
while
read
rp
;
do
echo
"
$rl
"
|
while
read
rp
;
do
...
@@ -118,6 +115,10 @@ __epm_removerepo_alt()
...
@@ -118,6 +115,10 @@ __epm_removerepo_alt()
shift
shift
__epm_removerepo_alt_grepremove
" repo/
$1
/"
"/tasks/
$1
"
"/
$1
[ /]build/repo"
__epm_removerepo_alt_grepremove
" repo/
$1
/"
"/tasks/
$1
"
"/
$1
[ /]build/repo"
;;
;;
all
)
info
"removing all repos"
__epm_removerepo_alt_grepremove
"all"
;;
-
*
)
-
*
)
fatal
"epm removerepo: no options are supported"
fatal
"epm removerepo: no options are supported"
;;
;;
...
...
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