mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-27 09:58:14 +01:00
libmateweather: switch to aviationweather.gov.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
bbd3bf0690
commit
01080b186b
2 changed files with 27 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=libmateweather
|
||||
VERSION=${VERSION:-1.15.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_msb}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -38,8 +38,6 @@ fi
|
|||
|
||||
wget -c http://pub.mate-desktop.org/releases/1.15/$PRGNAM-$VERSION.tar.xz
|
||||
|
||||
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/msb}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -74,6 +72,7 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/libmateweather.patch
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
25
base/libmateweather/libmateweather.patch
Normal file
25
base/libmateweather/libmateweather.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
--- libmateweather-1.15.0/libmateweather/weather-metar.c 2015-10-06 21:36:53.000000000 +0700
|
||||
+++ weather-metar.c 2016-08-27 22:43:19.601741148 +0700
|
||||
@@ -522,7 +522,7 @@
|
||||
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,10 +550,11 @@
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
info->requests_pending++;
|
||||
}
|
||||
+
|
Loading…
Reference in a new issue