Your message dated Wed, 27 Jun 2012 12:47:47 +0000
with message-id <[email protected]>
and subject line Bug#663486: fixed in weather-util 2.0-1
has caused the Debian Bug report #663486,
regarding weather-util: wrong display of temperatures below 0, if --metric or
--imperial is set
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
663486: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663486
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: weather-util
Version: 1.5-1
Severity: normal
Hi,
when setting either --metric or --imperial and the temperature is below 0, the
parsing of the temperature fails, e.g.:
weather -i ID --headers=Temperature -m
results in:
Temperature: -6.0 F (-21.1 C)
instead of:
Temperature: -21.1 C
The same holds also for the --imperial option.
I would suggest to change the regex matching to fix this issue:
--- weather-util-1.5/weather.py 2010-03-19 14:29:34.000000000 +0100
+++ weather-util-1.5_new/weather.py 2012-03-11 16:52:49.000000000 +0100
@@ -85,7 +85,7 @@
elif units == "metric": line = preamble + hpa + trailer
# filter lines with both temperatures in the form of "X F (Y C)"
dual_t = re.match(
- "(.* )(\d*(\.\d+)? F) \((\d*(\.\d+)? C)\)(.*)",
+ "(.* )([-]?\d*(\.\d+)? F) \(([-]?\d*(\.\d+)? C)\)(.*)",
line
)
if dual_t:
Best regards,
Stefan
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages weather-util depends on:
ii python 2.7.2-10
ii python-support 1.0.14
weather-util recommends no packages.
weather-util suggests no packages.
--- End Message ---
--- Begin Message ---
Source: weather-util
Source-Version: 2.0-1
We believe that the bug you reported is fixed in the latest version of
weather-util, which is due to be installed in the Debian FTP archive:
weather-util-data_2.0-1_all.deb
to main/w/weather-util/weather-util-data_2.0-1_all.deb
weather-util_2.0-1.debian.tar.gz
to main/w/weather-util/weather-util_2.0-1.debian.tar.gz
weather-util_2.0-1.dsc
to main/w/weather-util/weather-util_2.0-1.dsc
weather-util_2.0-1_all.deb
to main/w/weather-util/weather-util_2.0-1_all.deb
weather-util_2.0.orig.tar.gz
to main/w/weather-util/weather-util_2.0.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jeremy Stanley <[email protected]> (supplier of updated weather-util package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 26 Jun 2012 00:48:37 +0000
Source: weather-util
Binary: weather-util weather-util-data
Architecture: source all
Version: 2.0-1
Distribution: unstable
Urgency: low
Maintainer: Jeremy Stanley <[email protected]>
Changed-By: Jeremy Stanley <[email protected]>
Description:
weather-util - command-line tool to obtain weather conditions and forecasts
weather-util-data - optional correlation data for weather-util search feature
Closes: 663486
Changes:
weather-util (2.0-1) unstable; urgency=low
.
* New upstream release (closes: #663486)
* Updated to latest standards version (3.9.3)
* Updated debian/copyright Format field
* Added new public-domain files to debian/copyright
* Patched weatherrc with FHS-compliant paths
* Built additional weather-util-data package
* Switched from deprecated python-support to dh_python2
* Made weather.py private to reduce global module pollution
Checksums-Sha1:
d53f3e0191eb279dd5c55d6e90a6c74aa3562245 1472 weather-util_2.0-1.dsc
45f87a28838904b6e204e10539d2c0d40a664a7d 11036495 weather-util_2.0.orig.tar.gz
33536428579d04da2015b2043a6e07da93a8fb4e 4474 weather-util_2.0-1.debian.tar.gz
05d3998c118b2f990e3e58307497ba88a4a1ba8f 30760 weather-util_2.0-1_all.deb
c446285f7afe2e1adad54041bed5e4cf7a002b53 5947614
weather-util-data_2.0-1_all.deb
Checksums-Sha256:
f9ca782be05bb6b6bbf78e5424afe61c80d1937b3a93a89e740d85159f5152be 1472
weather-util_2.0-1.dsc
70fff519a3d8d930e77e03fd48dd860138621ace947177a91d7d3935d73e1d30 11036495
weather-util_2.0.orig.tar.gz
876e7b2073bbfab616c4d153ae143aae8c68027ac87fc9dd3685f936bb4c69ed 4474
weather-util_2.0-1.debian.tar.gz
835f51c37f264afc245ffbbb707092a3bfc222e248f38008e7fc2e41e9b87463 30760
weather-util_2.0-1_all.deb
599092a860040c3de24ea17d725fc9df5f508fe3bdb14232cf4efda202ac1177 5947614
weather-util-data_2.0-1_all.deb
Files:
dc80b13b09da4432ba7055973353dad3 1472 utils extra weather-util_2.0-1.dsc
be49f38f2da59dfc4716e2370f029a65 11036495 utils extra
weather-util_2.0.orig.tar.gz
1c1b182fd1d941733d14930c869d368e 4474 utils extra
weather-util_2.0-1.debian.tar.gz
c4f55d24121550805e5450816b6f161b 30760 utils extra weather-util_2.0-1_all.deb
44a0e488ff087b3f622eb3538a18df37 5947614 utils extra
weather-util-data_2.0-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAEBCAAGBQJP6fvfAAoJEH2AMVxXNt516CUH/0I7EkGzfJeOFYRZogJlF2F8
+d3C4Ru4TsTdWMS6g2aSPJZgnn9xCvyhaOjQOwkdr48t+uYkmJIqRJDUqT9otua6
ZdqnTVSYXwODncB5DHTnGmdECyDL3ZTvQUK2Bb4ct2f1LblCELuU2do0n3T5yMP3
JQqqW+yzg4Od2Lm1HdRkwqJDrpVDCnGt/JkqjL/b13ZHlohzp9tIg72KtXTmceyh
DoFvCOrsYh+MzjkEb7xTwnDnYds8MdKuDYxTSKl1cK2DXDHEZ7x09ESadRAI3Gd7
+7pYlFzxoX8rNmdFO0lgbpKd/tzmuwDtYliD/Qrkv3K6649NJVpNsdQd+/+N4S4=
=mhjD
-----END PGP SIGNATURE-----
--- End Message ---