Your message dated Thu, 12 Dec 2013 11:48:30 +0000
with message-id <[email protected]>
and subject line Bug#722080: fixed in gtg 0.3.1-1
has caused the Debian Bug report #722080,
regarding gtg: Fuzzy dates are no longer kept relative to today
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.)


-- 
722080: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=722080
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gtg
Version: 0.3-2
Severity: normal
Tags: patch

0.3 introduced a regression where fuzzy dates (mostly "now" and "soon")
are no longer kept relative to the current date, but remain at the value
they were initialized with at startup.  (Thus somehow defeating their
purpose, if gtg is left running for long periods.)

Attached is a simple patch restoring the proper behavior.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.10-1-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= <[email protected]>
Date: Tue, 27 Aug 2013 17:58:49 -0400
Subject: Keep fuzzy dates relative to today

This partially reverts a change brought in by revision 1176.2.2.
Apparently, pylint considers these lambdas useless, but they are
necessary to keep fuzzy dates (mostly now/soon) relative to the current
date.
---
 GTG/tools/dates.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/GTG/tools/dates.py b/GTG/tools/dates.py
index 5e3dbe7..14270e8 100644
--- a/GTG/tools/dates.py
+++ b/GTG/tools/dates.py
@@ -61,10 +61,10 @@ LOOKUP = {
 }
 # functions giving absolute dates for fuzzy dates + no date
 FUNCS = {
-    NOW: datetime.date.today(),
-    SOON: datetime.date.today() + datetime.timedelta(15),
-    SOMEDAY: datetime.date.max,
-    NODATE: datetime.date.max - datetime.timedelta(1),
+    NOW: lambda: datetime.date.today(),
+    SOON: lambda: datetime.date.today() + datetime.timedelta(15),
+    SOMEDAY: lambda: datetime.date.max,
+    NODATE: lambda: datetime.date.max - datetime.timedelta(1),
 }
 
 # ISO 8601 date format
@@ -121,7 +121,7 @@ class Date(object):
     def date(self):
         """ Map date into real date, i.e. convert fuzzy dates """
         if self.is_fuzzy():
-            return FUNCS[self._fuzzy]
+            return FUNCS[self._fuzzy]()
         else:
             return self._real_date
 

--- End Message ---
--- Begin Message ---
Source: gtg
Source-Version: 0.3.1-1

We believe that the bug you reported is fixed in the latest version of
gtg, which is due to be installed in the Debian FTP archive.

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.
Luca Falavigna <[email protected]> (supplier of updated gtg 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: Thu, 12 Dec 2013 12:29:43 +0100
Source: gtg
Binary: gtg
Architecture: source all
Version: 0.3.1-1
Distribution: unstable
Urgency: medium
Maintainer: Luca Falavigna <[email protected]>
Changed-By: Luca Falavigna <[email protected]>
Description: 
 gtg        - organizer for the GNOME desktop environment
Closes: 722080
Changes: 
 gtg (0.3.1-1) unstable; urgency=medium
 .
   * New upstream release.
   * debian/patches/dates.patch:
     - Keep fuzzy dates relative to today, thanks to Frédéric Brière for
       the bug report and the patch! (Closes: #722080).
   * debian/patches/keyworks.patch:
     - Implement Keyword key in the .desktop file.
   * debian/patches/manpages.patch:
     - Fix spelling errors in the man pages.
   * debian/control:
     - Bump Standards-Version to 3.9.5, no changes required.
   * debian/copyright:
     - Refresh copyright information.
Checksums-Sha1: 
 3c3c4dfaf5d53e0fe64ceefbb8cefdf44b97af93 1936 gtg_0.3.1-1.dsc
 0ee6e5956e008db713e19a32f04b8cefecb20e0d 7902244 gtg_0.3.1.orig.tar.gz
 c196c3b91d496514474af51e63986d94523024b6 10206 gtg_0.3.1-1.debian.tar.gz
 3e58e13b7ad5663366212242d5ea42d2b1e28e8f 3632296 gtg_0.3.1-1_all.deb
Checksums-Sha256: 
 bfce7b3dc311d65771dc031877ff4918fca52bb7beb5f4fadf73e65b34a647ad 1936 
gtg_0.3.1-1.dsc
 57ceb3fa15298b69ce64cdd0a0a35ef3f4fd1151458ddff21f26a288cc02a0a7 7902244 
gtg_0.3.1.orig.tar.gz
 0d148741a447e09352dac9f44e2355dd2714fb3a5c6950ba3340091107218015 10206 
gtg_0.3.1-1.debian.tar.gz
 043c62822c3274d75739b14b7c47807424ef08ae3df9324040636295170441ba 3632296 
gtg_0.3.1-1_all.deb
Files: 
 357af536cff8e60061d8a54056265b38 1936 gnome optional gtg_0.3.1-1.dsc
 d51a4e5eb0cfb29b3556c4e82c0b2dd8 7902244 gnome optional gtg_0.3.1.orig.tar.gz
 bb9b06db669d632f9a1e32239bfb0397 10206 gnome optional gtg_0.3.1-1.debian.tar.gz
 2446e541de6cf1bd8673d36659e02ca3 3632296 gnome optional gtg_0.3.1-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJSqZ/LAAoJEEkIatPr4vMflR8P/2lQXVngQT1cc7QpCCmtyBDd
4n7sXWQ8dmtMAd4f9Jb1kVd7ofWYI4Nw2ThDEARcbHuiulxsB9UaFgZJa2SkNKlU
tD/9hlXoM7Fp5pkQ/n91+1KJ7yDwb0sLENQLeHRsyWxAfN86KFVmXnYDVbc2JlBt
D6JCRnh9AEuc4RNHkclfre3+CtGxBC0lXNyck6J9LYCPoxMj721rhXAcbD6g9ewC
pCM64/W0XkF4way4Um0NpVxNfOtyhOLiLDc6y+A1CHmBnZWQE6crEPU8b813h69D
J8aAvIo+2MC4J+BTqDEpanh2vzSCE+TN0H/ioJPTeJnZCPwdqz4vsCqLfoLm6x6A
q5uKtxwc61io3fjpZZXWyjF1uZrOCR2QARmIthbmusnWyEBHWwvag3S+NYabuIeB
7sVWjy+sGCTKK2virFV1eGmDam1gnmzl1174AwPvrWJrMpUW5T3jUi5R7pHn9Urt
4tx0SPio57DNnJg0uxtFPUMpLxVUIxwSnDWMlUfzJZ10/a+KSmcsOVGxencj7jB+
iHTFAbxAG3NQGCPpD6Xhmx5nFPFUixqq253T6IUL2OS5AXCqNCCqxu+Nc4IK85xR
/U45sqOM/qvmsZ6qL9x00dDP6oZUM3PNF8qlIz6wvkO035+CirNWDXjdgSG8VZoK
mL0e2SWIT0v8NyfXeYkx
=0c2a
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to