diff options
author | adamw <adamw@FreeBSD.org> | 2003-12-01 02:19:02 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2003-12-01 02:19:02 +0800 |
commit | 563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d (patch) | |
tree | ed10babf6138d23027c387226e3fec221d7d04e5 /astro | |
parent | 2eff30392b65da3ed4063df0e7774c082dcc4627 (diff) | |
download | freebsd-ports-gnome-563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d.tar.gz freebsd-ports-gnome-563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d.tar.zst freebsd-ports-gnome-563cbfcfdeb1d15bc15e592ba8c49ed57be44b8d.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
Diffstat (limited to 'astro')
-rw-r--r-- | astro/gdesklets-goodweather/files/GoodWeather::__init__.py | 21 |
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 |