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
95234ce2
Commit
95234ce2
authored
Apr 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo add: add Alpine support
parent
92d5f890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
epm-addrepo
bin/epm-addrepo
+13
-0
epm-repolist
bin/epm-repolist
+3
-0
No files found.
bin/epm-addrepo
View file @
95234ce2
...
@@ -341,6 +341,15 @@ __epm_addrepo_astra()
...
@@ -341,6 +341,15 @@ __epm_addrepo_astra()
return
return
}
}
__epm_addrepo_alpine
()
{
local
repo
=
"
$1
"
is_url
"
$repo
"
||
fatal
"Only URL is supported"
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
echo
"
$repo
"
| sudocmd
tee
-a
/etc/apk/repositories
}
__epm_addrepo_deb
()
__epm_addrepo_deb
()
{
{
assure_exists apt-add-repository software-properties-common
assure_exists apt-add-repository software-properties-common
...
@@ -401,6 +410,10 @@ case $BASEDISTRNAME in
...
@@ -401,6 +410,10 @@ case $BASEDISTRNAME in
"astra"
)
"astra"
)
__epm_addrepo_astra
$repo
__epm_addrepo_astra
$repo
return
return
;;
"apk"
)
__epm_addrepo_alpine
"
$repo
"
||
return
;;
esac
esac
case
$PMTYPE
in
case
$PMTYPE
in
...
...
bin/epm-repolist
View file @
95234ce2
...
@@ -127,6 +127,9 @@ case $PMTYPE in
...
@@ -127,6 +127,9 @@ case $PMTYPE in
urpm-rpm
)
urpm-rpm
)
docmd urpmq
--list-media
active
--list-url
docmd urpmq
--list-media
active
--list-url
;;
;;
apk
)
cat
/etc/apk/repositories
;;
zypper-rpm
)
zypper-rpm
)
docmd zypper sl
-d
docmd zypper sl
-d
;;
;;
...
...
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