Package: ieee-data
Version: 20160613.1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch
Dear Maintainer,
In Ubuntu, the attached patch will probably be applied once Ubuntu
development re-opens:
* Misc fixes to update-ieee-data (LP: #1694922):
- Quote checks for download executables to ensure that they are
correctly detected.
- Use "curl -sL" if selected to ensure that redirects are
followed.
This fixes a couple of minor niggles with the update-ieee-data script
when used in Ubuntu.
Thanks for considering the patch.
-- System Information:
Debian Release: stretch/sid
APT prefers artful
APT policy: (500, 'artful')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-15-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru ieee-data-20160613.1/update-ieee-data
ieee-data-20160613.1ubuntu1/update-ieee-data
--- ieee-data-20160613.1/update-ieee-data 2016-06-13 13:16:51.000000000
+0100
+++ ieee-data-20160613.1ubuntu1/update-ieee-data 2017-10-24
09:17:31.000000000 +0100
@@ -53,9 +53,9 @@
done
dler=""
-[ -x $(which curl) ] && dler="curl"
-[ -x $(which lwp-request) ] && dler="lwp-request -m GET"
-[ -x $(which wget) ] && dler="wget -q -O-"
+[ -x "$(which curl)" ] && dler="curl -sL"
+[ -x "$(which lwp-request)" ] && dler="lwp-request -m GET"
+[ -x "$(which wget)" ] && dler="wget -q -O-"
if [ -z "$dler" ]; then
Die "Unable to find a suitable downloader, please install wget or curl
or libwww-perl"