Skip to content

Commit

Permalink
app-admin/conky: Update NOAA METAR uri.
Browse files Browse the repository at this point in the history
This fixes bug #592906. Thanks to Brand Huntsman for the report.

Package-Manager: portage-2.3.0
  • Loading branch information
billie80 committed Oct 16, 2016
1 parent f44f019 commit 6e1322a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app-admin/conky/conky-1.9.0-r3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch
Original file line number Diff line number Diff line change
@@ -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")) {

0 comments on commit 6e1322a

Please sign in to comment.