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
199762c4
Commit
199762c4
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-sh-altlinux-contents-index: use rsync -z only for uncompressed files
parent
e6753fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
epm-sh-altlinux-contents-index
bin/epm-sh-altlinux-contents-index
+4
-4
No files found.
bin/epm-sh-altlinux-contents-index
View file @
199762c4
...
...
@@ -68,7 +68,7 @@ __local_ercat()
done
}
# URL TARGETDIR
# URL TARGETDIR
OPTIONS
rsync_alt_contents_index
()
{
local
URL
=
"
$1
"
...
...
@@ -76,9 +76,9 @@ rsync_alt_contents_index()
assure_exists rsync
mkdir
-p
"
$(
dirname
"
$TD
"
)
"
if
[
-n
"
$verbose
"
]
;
then
docmd rsync
--partial
--inplace
-z
-a
--progress
"
$URL
"
"
$TD
"
docmd rsync
--partial
--inplace
$3
-a
--progress
"
$URL
"
"
$TD
"
else
a
=
rsync
--partial
--inplace
-z
-a
--progress
"
$URL
"
"
$TD
"
>
/dev/null 2>/dev/null
a
=
rsync
--partial
--inplace
$3
-a
--progress
"
$URL
"
"
$TD
"
>
/dev/null 2>/dev/null
fi
}
...
...
@@ -142,7 +142,7 @@ update_alt_contents_index()
fi
# fix rsync URL firstly
local
RSYNCURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|rsync://
\(
ftp.basealt.ru
\|
basealt.org
\|
altlinux.ru
\)
/pub/distributions/ALTLinux|rsync://
\1
/ALTLinux|"
)
"
#"
rsync_alt_contents_index
$RSYNCURL
/base/contents_index
$LOCALPATH
/contents_index
&&
__add_to_contents_index_list
"
$RSYNCURL
"
"
$LOCALPATH
/contents_index"
&&
continue
rsync_alt_contents_index
$RSYNCURL
/base/contents_index
$LOCALPATH
/contents_index
-z
&&
__add_to_contents_index_list
"
$RSYNCURL
"
"
$LOCALPATH
/contents_index"
&&
continue
__add_better_to_contents_index_list
"(cached)"
"
$LOCALPATH
/contents_index.gz"
"
$LOCALPATH
/contents_index"
fi
...
...
This diff is collapsed.
Click to expand it.
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