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
781b82a7
Commit
781b82a7
authored
Aug 06, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo add: fix quoting, add --force support
parent
54fbdf1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
epm-addrepo
bin/epm-addrepo
+7
-7
No files found.
bin/epm-addrepo
View file @
781b82a7
...
...
@@ -301,8 +301,10 @@ __epm_addrepo_altlinux()
;;
esac
# don't add again
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
if
[
-z
"
$force
"
]
;
then
# don't add again
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
fi
if
echo
"
$repo
"
|
grep
-q
"https://"
;
then
local
mh
=
"
$(
echo
/usr/lib
*
/apt/methods/https
)
"
...
...
@@ -429,12 +431,11 @@ local repo="$*"
case
$BASEDISTRNAME
in
"alt"
)
# Note! Don't use quotes here
__epm_addrepo_altlinux
$repo
__epm_addrepo_altlinux
"
$@
"
return
;;
"astra"
)
__epm_addrepo_astra
$repo
__epm_addrepo_astra
"
$@
"
return
;;
"apk"
)
...
...
@@ -444,8 +445,7 @@ esac
case
$PMTYPE
in
apt-dpkg
)
# Note! Don't use quotes here
__epm_addrepo_deb
$repo
__epm_addrepo_deb
"
$@
"
;;
aptitude-dpkg
)
info
"You need manually add repo to /etc/apt/sources.list (TODO)"
...
...
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