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
2e3a17bb
Commit
2e3a17bb
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo remove: refactoring
parent
d43a3ed0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
epm-removerepo
bin/epm-removerepo
+7
-10
No files found.
bin/epm-removerepo
View file @
2e3a17bb
...
...
@@ -98,14 +98,7 @@ case $BASEDISTRNAME in
__epm_removerepo_alt
"
$@
"
return
;;
esac
;
case
$PMTYPE
in
apt-dpkg
)
assure_exists apt-add-repository software-properties-common
set_sudo
if
[
"
$DISTRNAME
"
=
"AstraLinuxCE"
]
||
[
"
$DISTRNAME
"
=
"AstraLinuxSE"
]
;
then
"astra"
)
echo
"Use workaround for AstraLinux"
[
-n
"
$*
"
]
||
fatal
"empty repo name"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
...
...
@@ -113,9 +106,13 @@ case $PMTYPE in
if
[
-d
/etc/apt/sources.list.d
]
&&
ls
/etc/apt/sources.list.d/
*
.list
>
/dev/null 2>/dev/null
;
then
sudocmd
sed
-i
-e
"s|.*
$*
.*||"
/etc/apt/sources.list.d/
*
.list
fi
exit
fi
return
;;
esac
;
case
$PMTYPE
in
apt-dpkg
)
assure_exists apt-add-repository software-properties-common
# FIXME: it is possible there is troubles to pass the args
sudocmd apt-add-repository
--remove
"
$*
"
info
"Check file /etc/apt/sources.list if needed"
...
...
This diff is collapsed.
Click to expand it.
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