Package: dh-make-drupal
Version: 1.3-1
Severity: grave
Tags: upstream patch
Justification: renders package unusable

Grr, I'm doing this all backward: I first got a patch (via github),
then uploaded 1.4-1, fixing this problem, and without mentioning the
bug :-/ and finally file the bug.

Anyway, this bug report follows this pull request I got at github:

https://github.com/gwolf/dh-make-drupal/pull/3

/------------------------------------------------------------
|It seems drupal.org is new redirecting us to https. I got the following error:
|
|$ dh-make-drupal -d 6 webform
|/usr/lib/ruby/1.8/open-uri.rb:174:in open_loop': redirection forbidden: 
http://drupal.org/project/webform -> https://drupal.org/project/webform 
(RuntimeError)
|from /usr/lib/ruby/1.8/open-uri.rb:132:inopen_uri'
|from /usr/lib/ruby/1.8/open-uri.rb:518:in open'
|from /usr/lib/ruby/1.8/open-uri.rb:30:inopen'
|from /home/skangas/dh-make-drupal/dh-make-drupal:674:in fetch_data'
|from /home/skangas/dh-make-drupal/dh-make-drupal:734:infor'
|from /home/skangas/dh-make-drupal/dh-make-drupal:147:in fetch_info'
|from /home/skangas/dh-make-drupal/dh-make-drupal:99:ininitialize'
|from /home/skangas/dh-make-drupal/dh-make-drupal:1107:in new'
|from /home/skangas/dh-make-drupal/dh-make-drupal:1107:inrun'
|from /home/skangas/dh-make-drupal/dh-make-drupal:1121
|
|To fix this, I changed it to use https directly instead.
|
|Please consider this change for inclusion.
\------------------------------------------------------------

The patch is trivial (and attached to this report). Please allow for
its inclusion in a point release.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dh-make-drupal depends on:
ii  build-essential  11.6
ii  debhelper        9.20130518
ii  libruby          1:1.9.3
ii  ruby             1:1.9.3
ii  ruby-hpricot     0.8.6-3
ii  ruby1.8 [ruby]   1.8.7.358-7

dh-make-drupal recommends no packages.

Versions of packages dh-make-drupal suggests:
pn  drupal6 | drupal7  <none>

-- debconf-show failed
diff --git a/dh-make-drupal b/dh-make-drupal
index 650e967..e590bd9 100755
--- a/dh-make-drupal
+++ b/dh-make-drupal
@@ -287,7 +287,7 @@ module DrupalProject
     # Creates the debian/watch file
     def setup_watch
       res = ['version=3',
-             ( 'http://drupal.org/project/%s .*/%s-%s.x-(\d[\d_.]+)\.tar\.gz' %
+             ( 'https://drupal.org/project/%s .*/%s-%s.x-(\d[\d_.]+)\.tar\.gz' %
                [@project.name, @project.name, @d_ver] ) ].join("\n")
       put_in_file 'watch', res
     end
@@ -667,7 +667,7 @@ module DrupalProject
     end
 
     def fetch_data
-      @url = "http://drupal.org/project/#{@name}";
+      @url = "https://drupal.org/project/#{@name}";
       Logger.instance.debug "Fetching project information from #{@url}"
 
       begin
@@ -689,7 +689,7 @@ module DrupalProject
       # that uploaded the node to Drupal, AFAICT). Still, we do what
       # we can.
       relative_url = @html.search('div.submitted a')[0].get_attribute('href').gsub( /^\//, '')
-      @author = Author.fetch_from('http://drupal.org/%s' % relative_url)
+      @author = Author.fetch_from('https://drupal.org/%s' % relative_url)
 
       # Which kind of project is this? We get the active tab in the
       # 'links' menu.
@@ -704,12 +704,12 @@ module DrupalProject
         @p_type = ProjType.new( @html.search('ul.links li.active')[0].inner_text )
       rescue NoMethodError
         begin
-          trans_url = "http://localize.drupal.org/translate/languages/#{@name}";
+          trans_url = "https://localize.drupal.org/translate/languages/#{@name}";
           if trans = open(trans_url)
             @p_type = ProjType.new('Translations')
             trans_warning = "Translations are probably outdated\n" +
               "Please compare module with #{trans_url} and\n" +
-              "http://localize.drupal.org/translate/downloads";
+              "https://localize.drupal.org/translate/downloads";
             @descr += "\n .\n#{trans_warning}"
             Logger.instance.warn trans_warning
           end

Reply via email to