app-admin/conky: Update NOAA METAR uri.
authorDaniel Pielmeier <billie@gentoo.org>
Sun, 16 Oct 2016 14:39:56 +0000 (16:39 +0200)
committerDaniel Pielmeier <billie@gentoo.org>
Sun, 16 Oct 2016 14:39:56 +0000 (16:39 +0200)
This fixes bug #592906. Thanks to Brand Huntsman for the report.

Package-Manager: portage-2.3.0

app-admin/conky/conky-1.9.0-r3.ebuild
app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch [new file with mode: 0644]

index 884c8679c1a65b7da91b4492392528fb69e5ce63..a1f0800261f51c497ae1300750424d1293404182 100644 (file)
@@ -67,7 +67,8 @@ src_prepare() {
                "${FILESDIR}/${P}-apcupsd.patch" \
                "${FILESDIR}/${P}-default-graph-size.patch" \
                "${FILESDIR}/${P}-diskio-dmmajor.patch" \
-               "${FILESDIR}/${P}-tinfo.patch"
+               "${FILESDIR}/${P}-tinfo.patch" \
+               "${FILESDIR}/${P}-update-noaa-metar-uri.patch"
 
        # Allow user patches #478482
        epatch_user
diff --git a/app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch b/app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch
new file mode 100644 (file)
index 0000000..0dbf3d3
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/weather.c
++++ b/src/weather.c
+@@ -858,7 +858,7 @@
+               }
+       } else
+ #endif /* XOAP */
+-      if (strstr(uri, "weather.noaa.gov")) {
++      if (strstr(uri, "tgftp.nws.noaa.gov")) {
+               strcat(uri, locID);
+               strcat(uri, ".TXT");
+       } else  if (!strstr(uri, "localhost") && !strstr(uri, "127.0.0.1")) {