aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2003-11-30 18:19:02 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2003-11-30 18:19:02 +0000
commitecac35aaa4a2d7fc1f13660402557e9375576a22 (patch)
treee5f6c0051c4491e42a207b06c6e6e65de4f51351
parent9e4c82a3e5d4aa207033ec7bf7e1a08d33fbff2b (diff)
downloadports-ecac35aaa4a2d7fc1f13660402557e9375576a22.tar.gz
ports-ecac35aaa4a2d7fc1f13660402557e9375576a22.zip
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
Notes
Notes: svn path=/head/; revision=94830
-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 000000000000..cf9a13b6464f
--- /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