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
fe4c2a8f
Commit
fe4c2a8f
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm addrepo: don't add repo if already exists (on ALT)
parent
36c6ee98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
epm-addrepo
bin/epm-addrepo
+5
-1
No files found.
bin/epm-addrepo
View file @
fe4c2a8f
...
...
@@ -222,6 +222,9 @@ __epm_addrepo_altlinux()
return
fi
# don't add again
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
sudocmd apt-repo
$dryrun
add
"
$repo
"
}
...
...
@@ -333,7 +336,8 @@ __epm_addrepo_astra()
echo
"Use workaround for AstraLinux ..."
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
# don't add again
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
[
-z
"
$(
tail
-n1
/etc/apt/sources.list
)
"
]
||
echo
""
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"
$repo
"
| sudocmd
tee
-a
/etc/apt/sources.list
return
...
...
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