Control: tag -1 + patch

On Mon, 1 Jun 2015 23:20:23 +0200, Stephen Kitt <sk...@debian.org> wrote:
> On Mon, 01 Jun 2015 23:06:01 +0200, Stephen Kitt <sk...@debian.org> wrote:
> > People running how-can-i-help for the first time are greeted with the
> > following:
> > 
> > /usr/bin/how-can-i-help:135:in `open': No such file or directory @
> > rb_sysopen - /home/steve/.cache/how-can-i-help/how-can-i-help.json.gz
> > (Errno::ENOENT) from /usr/bin/how-can-i-help:135:in `<main>'
> 
> For anyone else running across this, the following allows how-can-i-help to
> work:
> 
> mkdir ~/.cache/how-can-i-help
> cd $_
> wget http://udd.debian.org/how-can-i-help.json.gz

And the real fix is as follows (courtesy of Gilles on unix.stackexchange.com):

--- /usr/bin/how-can-i-help     2015-06-01 23:38:29.495098189 +0200
+++ /tmp/how-can-i-help 2015-06-01 23:39:07.551976071 +0200
@@ -41,7 +41,7 @@
   exit(0)
 end
 
-HELPITEMS_URL = 'http://udd.debian.org/how-can-i-help.json.gz'
+HELPITEMS_URL = 'https://udd.debian.org/how-can-i-help.json.gz'
 CACHEDIR = "#{HOME}/.cache/how-can-i-help"
 CONFIGDIR = "#{HOME}/.config/how-can-i-help"
 SEEN_LOCAL = "#{CACHEDIR}/seen.json"
@@ -120,6 +120,7 @@
 proxy_user, proxy_pass = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
 http_object = Net::HTTP.new(uri.host, uri.port, proxy_uri.host, proxy_uri.port,
                      proxy_user, proxy_pass)
+http_object.use_ssl = uri.scheme == 'https'
 # proceeding get_response
 
 begin



Regards,

Stephen

Attachment: pgpI6HS0P_1As.pgp
Description: OpenPGP digital signature

Reply via email to