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
17e6fe10
Commit
17e6fe10
authored
Mar 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo add: add support for dir
parent
bf7e4975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
epm-addrepo
bin/epm-addrepo
+25
-0
No files found.
bin/epm-addrepo
View file @
17e6fe10
...
...
@@ -76,6 +76,20 @@ __epm_addrepo_etersoft_addon()
echo
"rpm [etersoft]
$ETERSOFTPUBURL
/Etersoft LINUX@Etersoft/
$pb
/noarch addon"
| sudocmd
tee
-a
/etc/apt/sources.list
}
__epm_addrepo_altlinux_dir
()
{
local
archlist
=
"i586 x86_64 aarch64 noarch"
local dir
=
"
$1
"
local arch
for
arch
in
$archlist
;
do
local
rd
=
"
$(
echo
$dir
/
$arch
/RPMS.
*)
"
[
-d
"
$rd
"
]
||
continue
local
REPO_NAME
=
"
$(
echo
"
$rd
"
|
sed
-e
's|.*\.||'
)
"
docmd epm repo add
"rpm file:
$dir
$arch
$REPO_NAME
"
done
}
__epm_addrepo_altlinux
()
{
local
repo
=
"
$*
"
...
...
@@ -91,6 +105,12 @@ __epm_addrepo_altlinux()
echo
"<task number> - add task repo"
echo
"archive 2018/02/09 - for archive from that date"
echo
"autoimports - for BaseALT autoimports repo"
echo
"/dir/to/repo - add repo dir generated with epm repo index --init"
return
fi
if
[
-d
"
$1
"
]
;
then
__epm_addrepo_altlinux_dir
"
$1
"
return
fi
...
...
@@ -255,6 +275,11 @@ __epm_addrepo_deb()
assure_exists /usr/sbin/update-ca-certificates ca-certificates
fi
if
[
-d
"
$repo
"
]
;
then
sudocmd epm repo add
"deb file:
$repo
./"
return
fi
# FIXME: quotes in showcmd/sudocmd
showcmd apt-add-repository
"
$repo
"
sudorun apt-add-repository
"
$repo
"
...
...
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