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
524a09e0
Commit
524a09e0
authored
Feb 16, 2025
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Feb 19, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm update --content-index: fix rsync install (eterbug #17634)
parent
66364f58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
epm-sh-altlinux-contents-index
bin/epm-sh-altlinux-contents-index
+19
-3
No files found.
bin/epm-sh-altlinux-contents-index
View file @
524a09e0
...
@@ -130,9 +130,23 @@ update_alt_contents_index()
...
@@ -130,9 +130,23 @@ update_alt_contents_index()
# TODO: fix for Etersoft/LINUX@Etersoft
# TODO: fix for Etersoft/LINUX@Etersoft
# TODO: fix for rsync
# TODO: fix for rsync
info
"Retrieving contents_index ..."
info
"Retrieving contents_index ..."
(
quiet
=
1 epm_repolist
)
|
grep
-v
" task$"
|
grep
-E
"rpm.*(ftp://|http://|https://|rsync://|file:/)"
|
sed
-e
"s@^rpm.*
\(
ftp://
\|
http://
\|
https://
\)
@rsync://@g"
|
sed
-e
"s@^rpm.*
\(
file:
\)
@@g"
|
while
read
-r
URL1 URL2 component
;
do
mapfile
-t
URL_LIST < <
(
(
quiet
=
1 epm_repolist
)
|
\
grep
-v
" task$"
|
\
grep
-E
"rpm.*(ftp://|http://|https://|rsync://|file:/)"
|
\
sed
-e
"s@^rpm.*
\(
ftp://
\|
http://
\|
https://
\)
@rsync://@g"
|
\
sed
-e
"s@^rpm.*
\(
file:
\)
@@g"
)
for
line
in
"
${
URL_LIST
[@]
}
"
;
do
URL1
=
$(
echo
"
$line
"
|
awk
'{print $1}'
)
URL2
=
$(
echo
"
$line
"
|
awk
'{print $2}'
)
component
=
$(
echo
"
$line
"
|
awk
'{print $3}'
)
[
"
$component
"
=
"debuginfo"
]
&&
continue
[
"
$component
"
=
"debuginfo"
]
&&
continue
URL
=
"
$URL1
/
$URL2
"
URL
=
"
$URL1
/
$URL2
"
if
is_abs_path
"
$URL
"
;
then
if
is_abs_path
"
$URL
"
;
then
# first check for local mirror
# first check for local mirror
local
LOCALPATH
=
"
$(
echo
"
$URL
/base"
)
"
local
LOCALPATH
=
"
$(
echo
"
$URL
/base"
)
"
...
@@ -141,9 +155,11 @@ update_alt_contents_index()
...
@@ -141,9 +155,11 @@ update_alt_contents_index()
else
else
local
LOCALPATH
=
"
$(
get_local_alt_mirror_path
"
$URL
"
)
"
local
LOCALPATH
=
"
$(
get_local_alt_mirror_path
"
$URL
"
)
"
local
REMOTEURL
=
"
$(
get_url_to_etersoft_mirror
"
$URL
"
)
"
local
REMOTEURL
=
"
$(
get_url_to_etersoft_mirror
"
$URL
"
)
"
if
[
-n
"
$REMOTEURL
"
]
;
then
if
[
-n
"
$REMOTEURL
"
]
;
then
rsync_alt_contents_index
$REMOTEURL
/base/contents_index.gz
$LOCALPATH
/contents_index.gz
&&
__add_to_contents_index_list
"
$REMOTEURL
"
"
$LOCALPATH
/contents_index.gz"
&&
continue
rsync_alt_contents_index
"
$REMOTEURL
/base/contents_index.gz"
"
$LOCALPATH
/contents_index.gz"
&&
\
[
-n
"
$verbose
"
]
&&
info
'Note: Can'
\'
't retrieve $REMOTEURL/base/contents_index.gz, fallback to $URL/base/contents_index'
__add_to_contents_index_list
"
$REMOTEURL
"
"
$LOCALPATH
/contents_index.gz"
&&
continue
[
-n
"
$verbose
"
]
&&
info
"Note: Can't retrieve
$REMOTEURL
/base/contents_index.gz, fallback to
$URL
/base/contents_index"
fi
fi
# we don't know if remote server has rsync
# we don't know if remote server has rsync
# fix rsync URL firstly
# fix rsync URL firstly
...
...
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