summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2016-10-16 16:39:56 +0200
committerDaniel Pielmeier <billie@gentoo.org>2016-10-16 16:39:56 +0200
commit6e1322ac311e9b9f9488260c527076e331e8fb40 (patch)
tree7374bdff0694078ad1f9c27d75e82f14ad95f442
parentsci-mathematics/rw: new revision with a blocker on media-gfx/xpaint. (diff)
downloadgentoo-6e1322ac311e9b9f9488260c527076e331e8fb40.tar.gz
gentoo-6e1322ac311e9b9f9488260c527076e331e8fb40.tar.bz2
gentoo-6e1322ac311e9b9f9488260c527076e331e8fb40.zip
app-admin/conky: Update NOAA METAR uri.
This fixes bug #592906. Thanks to Brand Huntsman for the report. Package-Manager: portage-2.3.0
-rw-r--r--app-admin/conky/conky-1.9.0-r3.ebuild3
-rw-r--r--app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch11
2 files changed, 13 insertions, 1 deletions
diff --git a/app-admin/conky/conky-1.9.0-r3.ebuild b/app-admin/conky/conky-1.9.0-r3.ebuild
index 884c8679c1a6..a1f0800261f5 100644
--- a/app-admin/conky/conky-1.9.0-r3.ebuild
+++ b/app-admin/conky/conky-1.9.0-r3.ebuild
@@ -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
index 000000000000..0dbf3d3fadad
--- /dev/null
+++ b/app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch
@@ -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")) {