Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
bc41d41b
You need to sign in or sign up before continuing.
Commit
bc41d41b
authored
Jul 11, 2018
by
Vitaly Lipatov
Committed by
Downloader
Nov 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsync_all.sh: add SRPMS download support
parent
aa4f557c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
rsync_all.sh
etersoft-cron/rsync_all.sh
+8
-3
No files found.
etersoft-cron/rsync_all.sh
View file @
bc41d41b
...
...
@@ -65,8 +65,7 @@ echo "Start sync from $RSYNCPATH/$1 to $RPMS/$1"
# sync only if main dir is exist
test
-d
"
$RPMS
/
${
1
/\/*/
}
"
||
return
0
mkdir
-p
$RPMS
/
$1
/
rsync
$DELETE
--fuzzy
--partial
--inplace
--timeout
=
$TIMEOUT
--progress
--stats
-vrlt
--copy-links
\
--exclude
"*SRPMS*"
$2
\
rsync
$DELETE
--fuzzy
--partial
--inplace
--timeout
=
$TIMEOUT
--progress
--stats
-vrlt
--copy-links
$2
\
$RSYNCPATH
/
$1
/
$RPMS
/
$1
/
RES
=
$?
echo
"rsync exit:
$RES
"
...
...
@@ -99,7 +98,7 @@ sync_branches()
fi
for
i
in
$LISTARCH
;
do
func
$1
/
$i
func
$1
/
$i
'--exclude *SRPMS*'
done
}
...
...
@@ -134,6 +133,12 @@ elif [ "$1" = "--file" ] ; then
shift
sync_file
$1
exit
elif
[
"
$1
"
=
"--srpms"
]
;
then
shift
RSYNCPATH
=
$(
get_rsync_path
$1
)
# http://ftp.basealt.ru/pub/distributions/ALTLinux/Sisyphus/files/SRPMS/
func
$1
/files/SRPMS
exit
elif
echo
"
$1
"
|
grep
-q
branch
;
then
sync_branches
$1
exit
...
...
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