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
Nurlan
eepm
Commits
087a4856
Commit
087a4856
authored
Aug 19, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addrepo/removerepo: fix used repo id string
parent
db22b2f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
epm-addrepo
bin/epm-addrepo
+9
-8
epm-removerepo
bin/epm-removerepo
+9
-8
No files found.
bin/epm-addrepo
View file @
087a4856
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2012 Etersoft
# Copyright (C) 2012
, 2016
Etersoft
# Copyright (C) 2012 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012
, 2016
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -19,26 +19,27 @@
...
@@ -19,26 +19,27 @@
epm_addrepo
()
epm_addrepo
()
{
{
local
repo
=
"
$(
eval echo
$quoted_args
)
"
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
)
assure_exists apt-repo
assure_exists apt-repo
sudocmd apt-repo add
"
$
pkg_filenames
"
sudocmd apt-repo add
"
$
repo
"
;;
;;
apt-dpkg|aptitude-dpkg
)
apt-dpkg|aptitude-dpkg
)
info
"You need manually add repo to /etc/apt/sources.list"
info
"You need manually add repo to /etc/apt/sources.list"
;;
;;
yum-rpm
)
yum-rpm
)
assure_exists yum-utils
assure_exists yum-utils
sudocmd yum-config-manager
--add-repo
"
$
pkg_filenames
"
sudocmd yum-config-manager
--add-repo
"
$
repo
"
;;
;;
urpm-rpm
)
urpm-rpm
)
sudocmd urpmi.addmedia
"
$
pkg_filenames
"
sudocmd urpmi.addmedia
"
$
repo
"
;;
;;
zypper-rpm
)
zypper-rpm
)
sudocmd zypper ar
"
$
pkg_filenames
"
sudocmd zypper ar
"
$
repo
"
;;
;;
emerge
)
emerge
)
sudocmd layman
-a
$"pkg_filenames
"
sudocmd layman
-a
"
$repo
"
;;
;;
pacman
)
pacman
)
info
"You need manually add repo to /etc/pacman.conf"
info
"You need manually add repo to /etc/pacman.conf"
...
@@ -46,7 +47,7 @@ case $PMTYPE in
...
@@ -46,7 +47,7 @@ case $PMTYPE in
#sudocmd repo-add $pkg_filenames
#sudocmd repo-add $pkg_filenames
;;
;;
npackd
)
npackd
)
sudocmd npackdcl add-repo
--url
=
"
$
pkg_filenames
"
sudocmd npackdcl add-repo
--url
=
"
$
repo
"
;;
;;
slackpkg
)
slackpkg
)
info
"You need manually add repo to /etc/slackpkg/mirrors"
info
"You need manually add repo to /etc/slackpkg/mirrors"
...
...
bin/epm-removerepo
View file @
087a4856
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2012 Etersoft
# Copyright (C) 2012
, 2016
Etersoft
# Copyright (C) 2012 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012
, 2016
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -19,32 +19,33 @@
...
@@ -19,32 +19,33 @@
epm_removerepo
()
epm_removerepo
()
{
{
local
repo
=
"
$(
eval echo
$quoted_args
)
"
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
)
assure_exists apt-repo
assure_exists apt-repo
sudocmd apt-repo
rm
"
$
quoted_args
"
sudocmd apt-repo
rm
"
$
repo
"
;;
;;
apt-dpkg|aptitude-dpkg
)
apt-dpkg|aptitude-dpkg
)
info
"You need remove repo from /etc/apt/sources.list"
info
"You need remove repo from /etc/apt/sources.list"
;;
;;
yum-rpm
)
yum-rpm
)
assure_exists yum-utils
assure_exists yum-utils
sudocmd yum-config-manager
--disable
"
$
pkg_filenames
"
sudocmd yum-config-manager
--disable
"
$
repo
"
;;
;;
urpm-rpm
)
urpm-rpm
)
sudocmd urpmi.removemedia
"
$
pkg_filenames
"
sudocmd urpmi.removemedia
"
$
repo
"
;;
;;
zypper-rpm
)
zypper-rpm
)
sudocmd zypper removerepo
"
$
pkg_filenames
"
sudocmd zypper removerepo
"
$
repo
"
;;
;;
emerge
)
emerge
)
sudocmd layman
"-d
$
pkg_filenames
"
sudocmd layman
"-d
$
repo
"
;;
;;
pacman
)
pacman
)
info
"You need remove repo from /etc/pacman.conf"
info
"You need remove repo from /etc/pacman.conf"
;;
;;
npackd
)
npackd
)
sudocmd npackdcl remove-repo
--url
=
"
$
pkg_filenames
"
sudocmd npackdcl remove-repo
--url
=
"
$
repo
"
;;
;;
slackpkg
)
slackpkg
)
info
"You need remove repo from /etc/slackpkg/mirrors"
info
"You need remove repo from /etc/slackpkg/mirrors"
...
...
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