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
59451872
Commit
59451872
authored
May 18, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo: improve help
parent
480620ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
epm-addrepo
bin/epm-addrepo
+5
-2
epm-repo
bin/epm-repo
+14
-10
No files found.
bin/epm-addrepo
View file @
59451872
...
...
@@ -78,6 +78,9 @@ __epm_addrepo_altsp()
local
comp
local
repo
=
"
$1
"
case
"
$repo
"
in
c10f1
)
comp
=
"CF3"
;;
c9f2
)
comp
=
"CF2"
;;
...
...
@@ -169,8 +172,8 @@ cat <<EOF
epm repo add - add branch repo. Use follow params:
basealt - for BaseALT repo"
yandex - for BaseALT repo mirror hosted by Yandex (recommended)"
altsp - add ALT SP repo"
yandex - for BaseALT repo mirror hosted by Yandex (recommended)"
autoimports - for BaseALT autoimports repo"
autoports - for Autoports repo (with packages from Sisyphus rebuilt to the branch)
altlinuxclub - for altlinuxclub repo (http://altlinuxclub.ru/)"
...
...
@@ -292,7 +295,7 @@ __epm_addrepo_altlinux()
fi
case
"
$repo
"
in
c
9f2|c9f1
|c9
)
c
10f
*
|
c9f
*
|
c9
)
__epm_addrepo_altsp
"
$repo
"
return
;;
...
...
bin/epm-repo
View file @
59451872
...
...
@@ -23,8 +23,10 @@ epm_repo_help()
{
get_help HELPCMD
$SHAREDIR
/epm-repo
cat
<<
EOF
Examples:
epm repo set p9
epm repo switch p10
epm repo add autoimports
epm repo list
epm repo change yandex
...
...
@@ -40,14 +42,10 @@ epm_repo()
"-h"
|
"--help"
|
help
)
# HELPCMD: help
epm_repo_help
;;
""
|
list
)
# HELPCMD: list
packages
""
|
list
)
# HELPCMD: list
enabled repositories (-a|--all for list disabled repositorires too)
load_helper epm-repolist
epm_repolist
"
$@
"
;;
fix
)
# HELPCMD: fix paths in sources lists (ALT Linux only)
load_helper epm-repofix
epm_repofix
"
$@
"
;;
change
)
# HELPCMD: <mirror>: switch sources to the mirror (supports etersoft/yandex/basealt): rewrite URLs to the specified server
load_helper epm-repofix
epm_repofix
"
$@
"
...
...
@@ -56,7 +54,7 @@ epm_repo()
epm repo
rm
all
epm addrepo
"
$@
"
;;
switch
)
# HELPCMD: switch repo to <repo>: rewrite URLs to the repo
switch
)
# HELPCMD: switch repo to <repo>: rewrite URLs to the repo
(but use epm release-upgrade [Sisyphus|p10] for upgrade to a next branch)
load_helper epm-repofix
epm_reposwitch
"
$@
"
;;
...
...
@@ -68,11 +66,12 @@ epm_repo()
load_helper epm-repodisable
epm_repodisable
"
$@
"
;;
addkey
)
# HELPCMD: add repository gpg key (by URL or file
)
addkey
)
# HELPCMD: add repository gpg key (by URL or file) (run with --help to detail
)
load_helper epm-repo-addkey
epm_addkey
"
$@
"
;;
clean
)
# HELPCMD: remove temp. repos (tasks and CD-ROMs)
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
fatal
"TODO: only ALT now is supported"
# TODO: check for ALT
sudocmd apt-repo
$dryrun
clean
;;
...
...
@@ -84,11 +83,11 @@ epm_repo()
load_helper epm-reposave
epm_reporestore
"
$@
"
;;
reset
)
reset
)
# HELPCMD: reset repo lists to the distro default
load_helper epm-reposave
epm_reporeset
"
$@
"
;;
status
)
status
)
# HELPCMD: print repo status
load_helper epm-reposave
epm_repostatus
"
$@
"
;;
...
...
@@ -105,12 +104,17 @@ epm_repo()
load_helper epm-removerepo
epm_removerepo
"
$@
"
;;
fix
)
# HELPCMD: fix paths in sources lists (ALT Linux only)
load_helper epm-repofix
epm_repofix
"
$@
"
;;
# HELPCMD: PART: Local repo commands:
create
)
# HELPCMD: create (initialize) repo: [path] [name]
load_helper epm-repoindex
epm_repocreate
"
$@
"
;;
index
)
# HELPCMD: index repo: [--init] [path] [name]
index
)
# HELPCMD: index repo
(update indexes)
: [--init] [path] [name]
load_helper epm-repoindex
epm_repoindex
"
$@
"
;;
...
...
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