[libflickr-api-perl] 01/02: Update Flickr API URLs in lib/Flickr/API.pm.
gregor herrmann
gregoa at debian.org
Fri Jul 4 11:38:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch wheezy
in repository libflickr-api-perl.
commit bb4a0185b2e8682c53653834cbe75ca93632df70
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Jul 4 13:26:37 2014 +0200
Update Flickr API URLs in lib/Flickr/API.pm.
Flickr changed their API URLs from http://www.flickr.com to
https://api.flickr.com. Backport this change in lib/Flickr/API.pm and
test.pl from upstream releases 1.05 (www -> api) and 1.09 (http -> https).
Closes: #753522
LP: #1317464
Thanks: Lars Hansen and Paul L for the respective bug reports.
---
debian/patches/flickr-api-urls.patch | 34 ++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 35 insertions(+)
diff --git a/debian/patches/flickr-api-urls.patch b/debian/patches/flickr-api-urls.patch
new file mode 100644
index 0000000..a519a0d
--- /dev/null
+++ b/debian/patches/flickr-api-urls.patch
@@ -0,0 +1,34 @@
+Description: Update Flickr API URLs.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/753522
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/1317464
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-07-04
+Applied-Upstream: fixed in 1.09
+
+--- a/lib/Flickr/API.pm
++++ b/lib/Flickr/API.pm
+@@ -18,8 +18,8 @@
+ my $self = new LWP::UserAgent;
+ $self->{api_key} = $options->{key};
+ $self->{api_secret} = $options->{secret};
+- $self->{rest_uri} = $options->{rest_uri} || 'http://www.flickr.com/services/rest/';
+- $self->{auth_uri} = $options->{auth_uri} || 'http://www.flickr.com/services/auth/';
++ $self->{rest_uri} = $options->{rest_uri} || 'https://api.flickr.com/services/rest/';
++ $self->{auth_uri} = $options->{auth_uri} || 'https://api.flickr.com/services/auth/';
+
+ eval {
+ require Compress::Zlib;
+--- a/test.pl
++++ b/test.pl
+@@ -81,8 +81,8 @@
+ }
+
+ ok($uri->path eq '/services/auth/', "Checking correct return path");
+-ok($uri->host eq 'www.flickr.com', "Checking return domain");
+-ok($uri->scheme eq 'http', "Checking return protocol");
++ok($uri->host eq 'api.flickr.com', "Checking return domain");
++ok($uri->scheme eq 'https', "Checking return protocol");
+
+
+ ##################################################
diff --git a/debian/patches/series b/debian/patches/series
index d49b4f5..05c4b35 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
test-no-internet
+flickr-api-urls.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libflickr-api-perl.git
More information about the Pkg-perl-cvs-commits
mailing list