r46811 - in /packages/jessie/gnome-shell-extension-weather/debian: changelog patches/missing-api-key.patch patches/series
sebastien at users.alioth.debian.org
sebastien at users.alioth.debian.org
Sun Oct 25 18:25:33 UTC 2015
Author: sebastien
Date: Sun Oct 25 18:25:32 2015
New Revision: 46811
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=46811
Log:
d/p/missing-api-key.patch: new patch.
Displays a warning if API key has not been supplied by the user, since querying
openweathermap.org no longer works without such a key. (Closes: #801979)
Added:
packages/jessie/gnome-shell-extension-weather/debian/patches/missing-api-key.patch
Modified:
packages/jessie/gnome-shell-extension-weather/debian/changelog
packages/jessie/gnome-shell-extension-weather/debian/patches/series
Modified: packages/jessie/gnome-shell-extension-weather/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/jessie/gnome-shell-extension-weather/debian/changelog?rev=46811&op=diff
==============================================================================
--- packages/jessie/gnome-shell-extension-weather/debian/changelog [utf-8] (original)
+++ packages/jessie/gnome-shell-extension-weather/debian/changelog [utf-8] Sun Oct 25 18:25:32 2015
@@ -1,3 +1,11 @@
+gnome-shell-extension-weather (0~20140924.git7e28508-1+deb8u1) jessie; urgency=medium
+
+ * d/p/missing-api-key.patch: new patch. Displays a warning if API key
+ has not been supplied by the user, since querying openweathermap.org no
+ longer works without such a key. (Closes: #801979)
+
+ -- Sébastien Villemot <sebastien at debian.org> Sun, 25 Oct 2015 19:24:44 +0100
+
gnome-shell-extension-weather (0~20140924.git7e28508-1) unstable; urgency=medium
* New upstream snapshot.
Added: packages/jessie/gnome-shell-extension-weather/debian/patches/missing-api-key.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/jessie/gnome-shell-extension-weather/debian/patches/missing-api-key.patch?rev=46811&op=file
==============================================================================
--- packages/jessie/gnome-shell-extension-weather/debian/patches/missing-api-key.patch (added)
+++ packages/jessie/gnome-shell-extension-weather/debian/patches/missing-api-key.patch [utf-8] Sun Oct 25 18:25:32 2015
@@ -0,0 +1,20 @@
+Description: Add notification if API key is missing
+ The API is now mandatory for using openweathermap.org.
+Origin: backport, https://github.com/jenslody/gnome-shell-extension-openweather/commit/f9f97dcaaa0b7d51a4b4193ba3802b3d0ba10441
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801979
+Reviewed-by: Sébastien Villemot <sebastien at debian.org>
+Last-Update: 2015-10-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/extension.js
++++ b/src/extension.js
+@@ -138,6 +138,9 @@ const OpenweatherMenuButton = new Lang.C
+ // Load settings
+ this.loadConfig();
+
++ if (this._appid.toString().trim() == '')
++ Main.notify("Openweather", _("Openweathermap.org does not work without an api-key.\nPlease register at http://openweathermap.org/appid and paste your personal key into the preferences dialog."));
++
+ // Label
+ this._weatherInfo = new St.Label({
+ y_align: Clutter.ActorAlign.CENTER,
Modified: packages/jessie/gnome-shell-extension-weather/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/jessie/gnome-shell-extension-weather/debian/patches/series?rev=46811&op=diff
==============================================================================
--- packages/jessie/gnome-shell-extension-weather/debian/patches/series [utf-8] (original)
+++ packages/jessie/gnome-shell-extension-weather/debian/patches/series [utf-8] Sun Oct 25 18:25:32 2015
@@ -0,0 +1 @@
+missing-api-key.patch
More information about the pkg-gnome-commits
mailing list