summaryrefslogtreecommitdiffstats
path: root/astro/gdesklets-goodweather
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2003-11-30 18:19:02 +0000
committeradamw <adamw@FreeBSD.org>2003-11-30 18:19:02 +0000
commit563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d (patch)
treeed10babf6138d23027c387226e3fec221d7d04e5 /astro/gdesklets-goodweather
parent2eff30392b65da3ed4063df0e7774c082dcc4627 (diff)
downloadFreeBSD-ports-563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d.zip
FreeBSD-ports-563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d.tar.gz
Add patch originally missed in import. Patch by
Franz Klammer <klammer@webonaut.com>. This fixes the build. PR: ports/59440 Submitted by: Mezz (maintainer) Approved by: marcus (portmgr) Pointy hat to: me Thanks for being so patient with me: Mezz
Diffstat (limited to 'astro/gdesklets-goodweather')
-rw-r--r--astro/gdesklets-goodweather/files/GoodWeather::__init__.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/astro/gdesklets-goodweather/files/GoodWeather::__init__.py b/astro/gdesklets-goodweather/files/GoodWeather::__init__.py
new file mode 100644
index 0000000..cf9a13b
--- /dev/null
+++ b/astro/gdesklets-goodweather/files/GoodWeather::__init__.py
@@ -0,0 +1,21 @@
+# Many thanks to Franz Klammer <klammer@webonaut.com> for help
+# and create this patch.
+
+--- GoodWeather/__init__.py.orig Tue Nov 18 16:38:53 2003
++++ GoodWeather/__init__.py Tue Nov 18 16:40:14 2003
+@@ -151,7 +151,14 @@
+ fh = urllib.urlopen(self.WEATHER_SOURCE % vars())
+ data = fh.read()
+
+- weather = parseGoodWeatherData(data)
++ #weather = parseGoodWeatherData(data)
++ data_error = re.search(r'''(<error>)''', data)
++ if not data_error:
++ weather = parseGoodWeatherData(data)
++ else:
++ time.sleep(1)
++ continue
++
+ metric = 0
+ if (units == self.CELSIUS):
+ metric = 1
OpenPOWER on IntegriCloud