File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ function rsync_repo {
135
135
local remote_repo_dir=$2
136
136
137
137
echo " Syncing to $repository_server_upload_domain :$remote_repo_dir "
138
+ # We have an issue where the rsync can fail due to the remote dir being locked (only one rsync at a time allowed)
139
+ # We suspect this is because of too fast subsequent invocations of rsync to the same target dir. With a hacky sleep
140
+ # we hope to avoid this issue for now.
141
+ sleep 10
138
142
rsync -av --delete --mkpath --rsh=' ssh -p 1122' \
139
143
" $local_repo_dir " / \
140
144
build@" $repository_server_upload_domain " :" $remote_repo_dir "
Original file line number Diff line number Diff line change @@ -39,11 +39,12 @@ function main() {
39
39
echo " [#] Downloading $PACKAGE_FILENAME .asc"
40
40
if ! wget --quiet " $SIGNATURE_URL " ; then
41
41
echo " [!] Failed to download $SIGNATURE_URL "
42
+ rm " $PACKAGE_FILENAME "
42
43
exit 1
43
44
fi
44
45
45
46
echo " [#] Verifying $PACKAGE_FILENAME signature"
46
- if ! gpg --verify " $PACKAGE_FILENAME " .asc; then
47
+ if ! gpg --verify " $PACKAGE_FILENAME " .asc " $PACKAGE_FILENAME " ; then
47
48
echo " [!] Failed to verify signature"
48
49
rm " $PACKAGE_FILENAME " " $PACKAGE_FILENAME .asc"
49
50
exit 1
@@ -63,8 +64,6 @@ function main() {
63
64
return
64
65
fi
65
66
66
- echo " [#] $PACKAGE_FILENAME has changed"
67
- cp " $PACKAGE_FILENAME " " $WORKDIR /"
68
67
# Leaving a file in `$TMP_DIR` is used as an indicator further down that something changed
69
68
}
70
69
@@ -104,7 +103,13 @@ if [[ -z "$(ls -A "$TMP_DIR")" ]]; then
104
103
exit
105
104
fi
106
105
106
+ echo " "
107
107
echo " [#] New browser build(s) exist"
108
+ for package in * ; do
109
+ echo " [#] $package has changed"
110
+ mv " $package " " $WORKDIR /"
111
+ done
112
+
108
113
for repository in " ${REPOSITORIES[@]} " ; do
109
114
inbox_dir=" $NOTIFY_DIR /$repository "
110
115
You can’t perform that action at this time.
0 commit comments