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
71470596
Commit
71470596
authored
Mar 23, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo: add workaround for AstraLinux (add-apt-repository is broken)
parent
a9336d33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
epm-addrepo
bin/epm-addrepo
+9
-0
epm-removerepo
bin/epm-removerepo
+12
-0
No files found.
bin/epm-addrepo
View file @
71470596
...
...
@@ -164,6 +164,15 @@ __epm_addrepo_deb()
return
fi
if
[
"
$DISTRNAME
"
=
"AstraLinux"
]
;
then
echo
"Use workaround for AstraLinux"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
echo
""
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"
$repo
"
| sudocmd
tee
-a
/etc/apt/sources.list
exit
fi
# keywords
case
"
$1
"
in
docker
)
...
...
bin/epm-removerepo
View file @
71470596
...
...
@@ -104,6 +104,18 @@ case $PMTYPE in
apt-dpkg
)
assure_exists apt-add-repository software-properties-common
set_sudo
if
[
"
$DISTRNAME
"
=
"AstraLinux"
]
;
then
echo
"Use workaround for AstraLinux"
[
-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
exit
fi
# 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"
...
...
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