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
803247e3
Commit
803247e3
authored
May 16, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apt-dpkg: implement addrepo/removerepo
parent
904bdd3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
epm-addrepo
bin/epm-addrepo
+9
-1
epm-removerepo
bin/epm-removerepo
+6
-1
No files found.
bin/epm-addrepo
View file @
803247e3
...
...
@@ -97,7 +97,15 @@ case $DISTRNAME in
esac
case
$PMTYPE
in
apt-dpkg|aptitude-dpkg
)
apt-dpkg
)
assure_exists apt-add-repository software-properties-common
if
echo
"
$repo
"
|
grep
-q
"https://"
;
then
assure_exists apt-transport-https
fi
apt-add-repository
"
$repo
"
info
"Check file /etc/apt/sources.list if needed"
;;
aptitude-dpkg
)
info
"You need manually add repo to /etc/apt/sources.list (TODO)"
;;
yum-rpm
)
...
...
bin/epm-removerepo
View file @
803247e3
...
...
@@ -63,7 +63,12 @@ case $DISTRNAME in
esac
;
case
$PMTYPE
in
apt-dpkg|aptitude-dpkg
)
apt-dpkg
)
assure_exists apt-add-repository software-properties-common
apt-add-repository
--remove
"
$repo
"
info
"Check file /etc/apt/sources.list if needed"
;;
aptitude-dpkg
)
info
"You need remove repo from /etc/apt/sources.list"
;;
yum-rpm
)
...
...
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