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
4ac5adad
Commit
4ac5adad
authored
Mar 12, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-addrepo: fixes for URLs to ALT repos
parent
42e4b0d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
epm-addrepo
bin/epm-addrepo
+6
-6
No files found.
bin/epm-addrepo
View file @
4ac5adad
...
...
@@ -138,7 +138,7 @@ __epm_addrepo_altlinux_url()
if
echo
"
$base
"
|
grep
-q
"^RPMS
\.
"
;
then
REPO_NAME
=
"
$(
echo
$base
|
sed
-e
's|.*\.||'
)
"
url
=
"
$(
dirname
$url
)
"
docmd epm repo add
"rpm
$url
$REPO_NAME
"
__epm_addrepo_altlinux_short rpm
"
$url
"
"
$REPO_NAME
"
return
fi
...
...
@@ -147,8 +147,8 @@ __epm_addrepo_altlinux_url()
local
baseurl
=
"
$(
eget
--list
"
$url
/RPMS.*"
)
"
base
=
"
$(
basename
"
$baseurl
"
)
"
if
echo
"
$base
"
|
grep
-q
"^RPMS
\.
"
;
then
REPO_NAME
=
"
$(
echo
$base
|
sed
-e
's|.*\.||'
)
"
docmd epm repo add
"rpm
$url
$REPO_NAME
"
REPO_NAME
=
"
$(
echo
"
$base
"
|
sed
-e
's|.*\.||'
)
"
__epm_addrepo_altlinux_short rpm
"
$url
"
"
$REPO_NAME
"
return
fi
...
...
@@ -156,9 +156,9 @@ __epm_addrepo_altlinux_url()
local
res
=
''
for
arch
in
$(
get_archlist
)
;
do
local
rd
=
"
$(
eget
--list
$url
/
$arch
/RPMS.
*)
"
# TODO: fix URL support!
[
-d
"
$rd
"
]
||
continue
local
REPO_NAME
=
"
$(
echo
"
$rd
"
|
sed
-e
's|.*\.||'
)
"
[
-n
"
$rd
"
]
||
continue
local
REPO_NAME
=
"
$(
echo
"
$rd
"
|
sed
-e
's|/*$||'
-e
's|.*\.||'
)
"
[
"
$REPO_NAME
"
=
"*"
]
&&
continue
docmd epm repo add
"rpm
$url
$arch
$REPO_NAME
"
res
=
'1'
done
...
...
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