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
54b6e87c
Commit
54b6e87c
authored
Mar 08, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addrepo/removerepo: add dry-run support
parent
22d78ade
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
epm-addrepo
bin/epm-addrepo
+3
-3
epm-removerepo
bin/epm-removerepo
+3
-3
No files found.
bin/epm-addrepo
View file @
54b6e87c
...
...
@@ -94,13 +94,13 @@ __epm_addrepo_altlinux()
assure_exists apt-repo
if
tasknumber
"
$repo
"
>
/dev/null
;
then
sudocmd_foreach
'apt-repo add'
$(
tasknumber
"
$repo
"
)
sudocmd_foreach
"apt-repo
$dryrun
add"
$(
tasknumber
"
$repo
"
)
return
fi
if
[
-z
"
$repo
"
]
;
then
info
"Add branch repo. Use follow params:"
sudocmd apt-repo add branch
sudocmd apt-repo
$dryrun
add branch
echo
"etersoft - for LINUX@Etersoft repo"
echo
"archive 2018/02/09 - for archive from that date"
return
...
...
@@ -108,7 +108,7 @@ __epm_addrepo_altlinux()
# TODO: add other mirror (mirror.yandex.ru)
# TODO: apt-repo supports archive
sudocmd apt-repo add
"
$repo
"
sudocmd apt-repo
$dryrun
add
"
$repo
"
}
...
...
bin/epm-removerepo
View file @
54b6e87c
...
...
@@ -24,7 +24,7 @@ __epm_removerepo_alt_grepremove()
{
local
rp
epm repolist |
grep
-E
"
$1
"
|
while
read
rp
;
do
sudocmd apt-repo
rm
"
$rp
"
sudocmd apt-repo
$dryrun
rm
"
$rp
"
done
}
...
...
@@ -48,7 +48,7 @@ __epm_removerepo_alt()
info
"remove autoimports repo"
[
-n
"
$DISTRVERSION
"
]
||
fatal
"Empty DISTRVERSION"
repo
=
"autoimports.
$(
echo
"
$DISTRVERSION
"
|
tr
"[:upper:]"
"[:lower:]"
)
"
sudocmd apt-repo
rm
"
$repo
"
sudocmd apt-repo
$dryrun
rm
"
$repo
"
;;
archive
)
info
"remove archive repos"
...
...
@@ -63,7 +63,7 @@ __epm_removerepo_alt()
__epm_removerepo_alt_grepremove
" repo/
$1
/"
;;
*
)
sudocmd apt-repo
rm
"
$*
"
sudocmd apt-repo
$dryrun
rm
"
$*
"
;;
esac
...
...
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