Opened 13 years ago

Closed 13 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 13 years ago.

Download all attachments as: .zip

Change History (5)

by alex-j, 13 years ago

Attachment: update-smart-drivedb.patch added

comment:1 by Christian Franke, 13 years ago

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?

in reply to:  1 comment:2 by alex-j, 13 years ago

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 by Christian Franke, 13 years ago

Keywords: freebsd added

comment:4 by Christian Franke, 13 years ago

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