[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#850800: marked as done (Set User-Agent for wget, for preseed flexibility)



Your message dated Mon, 30 Jan 2017 23:48:25 +0000
with message-id <E1cYLgP-000E8X-5x@fasolo.debian.org>
and subject line Bug#850800: fixed in debian-installer-utils 1.118
has caused the Debian Bug report #850800,
regarding Set User-Agent for wget, for preseed flexibility
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
850800: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850800
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: di-utils
Severity: wishlist

The attached patch sets a User-Agent for wget (compatible with both
busybox wget and GNU wget), which allows a site to detect d-i, and (for
example) redirect to a preseed file to avoid having to enter a longer
URL on the d-i command line.

- Josh Triplett
>From 8caef3cd600553f222f37a49d8d708f6608f588d Mon Sep 17 00:00:00 2001
From: Josh Triplett <josh@joshtriplett.org>
Date: Tue, 10 Jan 2017 00:57:27 -0800
Subject: [PATCH] fetch-url-methods/http: Set User-Agent to "debian-installer"
 in wget

This allows a site to detect a Debian installer fetch request and
redirect to a preseed file, avoiding the need to type a long URL on the
d-i command line.
---
 fetch-url-methods/http | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fetch-url-methods/http b/fetch-url-methods/http
index c271d45..c3e80fc 100644
--- a/fetch-url-methods/http
+++ b/fetch-url-methods/http
@@ -39,6 +39,7 @@ protocol_fetch() {
 		fi
 		options=-q
 	fi
+	options="$options -U debian-installer"
 	RETVAL=0
 	for i in 1 2; do
 		wget404 $options -O "$file" "$url" || RETVAL=$?
-- 
2.11.0


--- End Message ---
--- Begin Message ---
Source: debian-installer-utils
Source-Version: 1.118

We believe that the bug you reported is fixed in the latest version of
debian-installer-utils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 850800@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Kern <pkern@debian.org> (supplier of updated debian-installer-utils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 31 Jan 2017 00:27:25 +0100
Source: debian-installer-utils
Binary: di-utils-shell di-utils-reboot di-utils-exit-installer di-utils di-utils-mapdevfs di-utils-terminfo
Architecture: source
Version: 1.118
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
Description:
 di-utils   - Miscellaneous utilities for the debian installer (udeb)
 di-utils-exit-installer - Exit installer (udeb)
 di-utils-mapdevfs - mapdevfs utility for the debian installer (udeb)
 di-utils-reboot - Reboot (udeb)
 di-utils-shell - Execute a shell (udeb)
 di-utils-terminfo - Terminfo entries needed by newt/slang in debian installer (udeb)
Closes: 850800
Changes:
 debian-installer-utils (1.118) unstable; urgency=medium
 .
   [ Josh Triplett ]
   * fetch-url-methods/http: Set User-Agent to "debian-installer" when calling
     wget. (Closes: #850800)
Checksums-Sha1:
 e0d974c6eb72edd67c84284466794a8edaca6363 1913 debian-installer-utils_1.118.dsc
 658cb94e740ad5074cbc62c69df1981e824a4402 97488 debian-installer-utils_1.118.tar.xz
Checksums-Sha256:
 fa409c0cea34bb15e0fd9dbfb6e219b2527d823122b5bba11b587f356133fe03 1913 debian-installer-utils_1.118.dsc
 89672a7985bbc0fef4070d287f5f81d3743249fc75eaa9a603b8181b4644a4bd 97488 debian-installer-utils_1.118.tar.xz
Files:
 bb2096c9573b6461274aada16070d0a5 1913 debian-installer standard debian-installer-utils_1.118.dsc
 36c840e8032b8594839a2cfc9f5d37e4 97488 debian-installer standard debian-installer-utils_1.118.tar.xz

-----BEGIN PGP SIGNATURE-----

iQFFBAEBCAAvFiEEPzuChCNsw7gPxr3/RG4lRTXQVuwFAliPzCgRHHBrZXJuQGRl
Ymlhbi5vcmcACgkQRG4lRTXQVuxkfAgAnPtFessVAasXLoMdwUs0X2/vUf4JcOFG
39k1d9e/hgZqf1yJY6tHs7YtORoScVW0c2fN/aLRC/XAHpha1ClsYPHfERiSf6xy
3+SNDLvnGb/nk1T75ckV0t1zE90OrRecI4C8J/iq3XAlB+oZ8lNJqew6Cwn74odg
hICq2irANGB5iGaOpFq6CdGIAnAawfiaNDaHibzij9SzjhFmSxXeGf4fXzb2e+rB
eka+CqEQNGxtrxUSZU/nbMzy0tX3Iy6omq0Zco9qKu8GUHXx1qFmHTBf3phrJvuM
wfiH3GORmr/z2Ct58mtdO/BWbQYvREEuM0Msr1uIAGr5uZquzzwudQ==
=8TSS
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: