sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Ismael Luceno (d6dfa4253ea64c1b2d6836dbcd491fae68039653)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Ismael Luceno (d6dfa4253ea64c1b2d6836dbcd491fae68039653)
- Date: Mon, 3 Apr 2023 00:05:16 +0000
GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:
usr/lib/sorcery/cmd/sightsee | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit d6dfa4253ea64c1b2d6836dbcd491fae68039653
Author: Pavel Vinogradov <vin.public AT gmail.com>
Commit: Ismael Luceno <ismael AT sourcemage.org>
sightsee: Add support for HTTP_DL_HANDLER and curl
diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee
index 4337ee1..cde72fc 100755
--- a/usr/lib/sorcery/cmd/sightsee
+++ b/usr/lib/sorcery/cmd/sightsee
@@ -1,10 +1,14 @@
#!/bin/sh
+. /etc/sorcery/local/config
codex=/var/lib/sorcery/codex
unset debug verbose paths
upstream_rel_get() {
[ -z "$debug" ] || >&2 echo "D: Visiting $1"
- wget -q -O- "$1" | gawk -vdebug="$debug" -vfname="$2" '
+ case "$HTTP_DL_HANDLER" in
+ (curl) curl -s "$1" ;;
+ (*) wget -q -O- "$1" ;;
+ esac | gawk -vdebug="$debug" -vfname="$2" '
match($0, fname, V) {
$0 = substr($0, RSTART, RLENGTH)
if (debug)
- [SM-Commit] GIT changes to master sorcery by Ismael Luceno (d6dfa4253ea64c1b2d6836dbcd491fae68039653), Ismael Luceno, 04/02/2023
Archive powered by MHonArc 2.6.24.