Opened 9 years ago

Closed 9 years ago

#127 closed enhancement (fixed)

update-smart-drivedb script haven't native FreeBSD's download program

Reported by: alex-j Owned by: Christian Franke
Priority: minor Milestone: Release 5.41
Component: drivedb Version: 5.40
Keywords: freebsd Cc:

Description

FreeBSD include in the base system native program for downloading that calls 'fetch'

suggestion to add this program to 'update-smart-drivedb'.

Patch attached.
===========================
diff --git a/update-smart-drivedb b/update-smart-drivedb
index b8d5505..32e0c6e 100755
--- a/update-smart-drivedb
+++ b/update-smart-drivedb
@@ -84,8 +84,10 @@ elif which wget >/dev/null 2>/dev/null; then

DOWNLOAD="wget $q"'-O "$DEST.new" "$SRC"'

elif which lynx >/dev/null 2>/dev/null; then

DOWNLOAD='lynx -source "$SRC" >"$DEST.new"'

+elif which fetch >/dev/null 2>/dev/null; then
+ DOWNLOAD='fetch -o "$DEST.new" "$SRC"'

else

  • echo "$0: curl, wget or lynx not available" >&2; exit 1

+ echo "$0: curl, wget, fetch or lynx not available" >&2; exit 1

fi

# Try possible branch first, then trunk

===========================

Attachments (1)

update-smart-drivedb.patch (625 bytes) - added by alex-j 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by alex-j

Attachment: update-smart-drivedb.patch added

comment:1 Changed 9 years ago by Christian Franke

Keywords: fetch drivedb removed
Milestone: Release 5.40.1Release 5.41
Owner: changed from somebody to Christian Franke
Priority: majorminor
Status: newaccepted

Is fetch(1) FreeBSD specific?

comment:2 in reply to:  1 Changed 9 years ago by alex-j

Replying to chrfranke:

Is fetch(1) FreeBSD specific?

I know for sure (100%) that FreeBSD and DragonFlyBSD include fetch(1) in the base system.
Although, I'm not sure about NetBSD and OpenBSD, but as far as I know NetBSD has fetch API but doesn't have command-line utility.
I don't exactly know about OpenBSD either, because I used it a long time ago, but as far as I can remember they use wget.

comment:3 Changed 9 years ago by Christian Franke

Keywords: freebsd added

comment:4 Changed 9 years ago by Christian Franke

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.