aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-05-13 05:46:21 -0400
committerB. Watson <urchlay@slackware.uk>2023-05-13 05:46:21 -0400
commit94beea1d7eb82ac125eccd2da9e5772ddd73fd9a (patch)
treed6f7f27aab1da6d1405654203047b78f19f59ad2
parenta7d41216611852b969e30b30c3fe6cd5b46602cf (diff)
downloadsbo-maintainer-tools-94beea1d7eb82ac125eccd2da9e5772ddd73fd9a.tar.gz
sbodl: suggest -a option if download fails.
-rw-r--r--README11
-rwxr-xr-xsbodl4
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