From 94beea1d7eb82ac125eccd2da9e5772ddd73fd9a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 13 May 2023 05:46:21 -0400 Subject: sbodl: suggest -a option if download fails. --- README | 11 +++++++---- sbodl | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README b/README index 7ef3fab..d5a1457 100644 --- a/README +++ b/README @@ -19,6 +19,9 @@ Included tools: - sbofixinfo: attempts to automatically fix common .info file problems. +- sbodl: download source files listed in DOWNLOAD and DOWNLOAD_x86_64 + in the .info file, and check the md5sums. + Note that the SBo admins use these tools as part of the approval process, when you submit an update. Failure to pass the lint checks is a valid reason for rejecting your submission, so you should either @@ -68,7 +71,7 @@ admins and explain the situation; it may mean sbolint needs updating. Documentation: -------------- -For more information, see the sbolint, sbopkglint, and sbofixinfo man -pages (or run the scripts with --doc; it's the same thing). There's -also a QUICKSTART file that gives the bare minimum info to get -started. +For more information, see the sbolint, sbopkglint, sbofixinfo, +and sbodl man pages (or run the scripts with --doc; it's the same +thing). There's also a QUICKSTART file that gives the bare minimum +info to get started. diff --git a/sbodl b/sbodl index a6cb8fc..2db3409 100755 --- a/sbodl +++ b/sbodl @@ -135,7 +135,7 @@ for dl in $DL; do elif [ "$FORCEDL" != "yes" ] && [ -e "$CACHEDIR/$FILE" ]; then ln -s "$CACHEDIR/$FILE" "$FILE" else - wget $EXTRAWGETARGS $WGETARGS "$dl" || die "Download failed" + wget $EXTRAWGETARGS $WGETARGS "$dl" || die "Download failed, try '$SELF -a'." if [ -e "$FILE" ]; then mv -b "$FILE" "$CACHEDIR" ln -s "$CACHEDIR/$FILE" "$FILE" @@ -150,7 +150,7 @@ for dl in $DL; do echo -e "${GREEN}md5sum matches OK${COLOR_OFF}: $1" fi else - echo -e "${RED}WARN${COLOR_OFF}: can't find downloaded file $FILE" + echo -e "${RED}WARN${COLOR_OFF}: can't find downloaded file $FILE, try '$SELF -a'?" fi shift done -- cgit v1.2.3