diff -Nru libmateweather-1.12.1/debian/changelog libmateweather-1.12.1/debian/changelog --- libmateweather-1.12.1/debian/changelog 2015-12-20 14:52:56.000000000 +0000 +++ libmateweather-1.12.1/debian/changelog 2016-08-25 08:29:29.000000000 +0000 @@ -1,3 +1,10 @@ +libmateweather (1.12.1-2) xenial; urgency=high + + * debian/patches: + + Add 0000_switch_to_aviationweather.patch. (LP: #1616533) + + -- Martin Wimpress Thu, 25 Aug 2016 09:27:33 +0100 + libmateweather (1.12.1-1) unstable; urgency=medium [ Martin Wimpress ] diff -Nru libmateweather-1.12.1/debian/patches/0000_switch_to_aviationweather.patch libmateweather-1.12.1/debian/patches/0000_switch_to_aviationweather.patch --- libmateweather-1.12.1/debian/patches/0000_switch_to_aviationweather.patch 1970-01-01 00:00:00.000000000 +0000 +++ libmateweather-1.12.1/debian/patches/0000_switch_to_aviationweather.patch 2016-08-25 08:26:03.000000000 +0000 @@ -0,0 +1,27 @@ +Description: metar: switch to aviationweather.gov (weather.noaa.gov is discontinued) +Author: Martin Wimpress + +diff --git a/libmateweather/weather-metar.c b/libmateweather/weather-metar.c +index da71db5..0787546 100644 +--- a/libmateweather/weather-metar.c ++++ b/libmateweather/weather-metar.c +@@ -522,7 +522,7 @@ metar_finish (SoupSession *session, SoupMessage *msg, gpointer data) + metar = g_strdup (p); + success = metar_parse (metar, info); + g_free (metar); +- } else if (!strstr (msg->response_body->data, "National Weather Service")) { ++ } else if (!strstr (msg->response_body->data, "AVIATION WEATHER CENTER")) { + /* The response doesn't even seem to have come from NWS... + * most likely it is a wifi hotspot login page. Call that a + * network error. +@@ -550,8 +550,8 @@ metar_start_open (WeatherInfo *info) + } + + msg = soup_form_request_new ( +- "GET", "http://weather.noaa.gov/mgetmetar.php", +- "cccc", loc->code, ++ "GET", "http://aviationweather.gov/metar/data", ++ "ids", loc->code, + NULL); + soup_session_queue_message (info->session, msg, metar_finish, info); + diff -Nru libmateweather-1.12.1/debian/patches/README libmateweather-1.12.1/debian/patches/README --- libmateweather-1.12.1/debian/patches/README 1970-01-01 00:00:00.000000000 +0000 +++ libmateweather-1.12.1/debian/patches/README 2016-08-25 08:15:44.000000000 +0000 @@ -0,0 +1,3 @@ +0xxx: Grabbed from upstream development. +1xxx: Possibly relevant for upstream adoption. +2xxx: Only relevant for official Debian release. diff -Nru libmateweather-1.12.1/debian/patches/series libmateweather-1.12.1/debian/patches/series --- libmateweather-1.12.1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libmateweather-1.12.1/debian/patches/series 2016-08-25 08:16:41.000000000 +0000 @@ -0,0 +1 @@ +0000_switch_to_aviationweather.patch