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
1
Merge Requests
1
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
5ab0310b
Commit
5ab0310b
authored
4 months ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-removerepo: implement __epm_removerepo_apt and use it for Astra
parent
a4bf4558
master
devel
Tags unavailable
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
epm-removerepo
bin/epm-removerepo
+14
-5
No files found.
bin/epm-removerepo
View file @
5ab0310b
...
@@ -19,6 +19,19 @@
...
@@ -19,6 +19,19 @@
load_helper epm-sh-altlinux
load_helper epm-sh-altlinux
# like apt-add-repository --remove on deb systems
__epm_removerepo_apt
()
{
[
-n
"
$*
"
]
||
fatal
"empty repo name"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
sudocmd
sed
-i
-e
"s|.*
$*
.*||"
/etc/apt/sources.list
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
}
__epm_grep_repo_list
()
__epm_grep_repo_list
()
{
{
while
[
-n
"
$1
"
]
;
do
while
[
-n
"
$1
"
]
;
do
...
@@ -114,12 +127,8 @@ case $BASEDISTRNAME in
...
@@ -114,12 +127,8 @@ case $BASEDISTRNAME in
;;
;;
"astra"
)
"astra"
)
echo
"Use workaround for AstraLinux"
echo
"Use workaround for AstraLinux"
[
-n
"
$*
"
]
||
fatal
"empty repo name"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
sudocmd
sed
-i
-e
"s|.*
$*
.*||"
/etc/apt/sources.list
__epm_removerepo_apt
"
$@
"
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
return
return
;;
;;
esac
;
esac
;
...
...
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