[PATCH 2/2] release.sh: Don't quit on dry runs if tarball already uploaded

Bryce Harrington bryce at osg.samsung.com
Wed Jan 20 14:46:39 PST 2016

From: Bryce Harrington <bryce at bryceharrington.org>

When doing practice runs of the script, we aren't going to be uploading
anything, so don't treat it as a fatal error if the tarball is already
uploaded, as this may hide potential subsequent issues that the user
should know about.

Signed-off-by: Bryce Harrington <bryce at bryceharrington.org>
 release.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/release.sh b/release.sh
index 0a1c607..ac6cb10 100755
--- a/release.sh
+++ b/release.sh
@@ -594,6 +594,8 @@ process_module() {
 	if [ $? -eq 0 ]; then
 	    if [ "x$FORCE" = "xyes" ]; then
 		echo "Warning: overwriting released tarballs due to --force option."
+	    elif [ "x$DRY_RUN" = "xyes" ]; then
+		echo "Warning: tarball $tar_name is already uploaded to $hostname."
 		echo "Error: tarball $tar_name already exists on $hostname. Use --force to overwrite."
 		cd $top_src

More information about the xorg-devel mailing list