Your message dated Sat, 24 Sep 2011 22:32:44 +0000
with message-id <[email protected]>
and subject line Bug#618651: fixed in gphoto2 2.4.11-2
has caused the Debian Bug report #618651,
regarding gphoto2: Please allow the keyword 'now' as a date when setting a 
config item
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.)


-- 
618651: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618651
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gphoto2
Version: 2.4.5-3
Severity: wishlist

To synchronise the time of the camera with gphoto2 one needs to do 
something like:
gphoto2 --set-config /main/settings/time=`date +%s` 
Because of the time passing between the execution of date and the 
setting of the camera clock, the camera clock will lag by a few seconds.
It would be more convenient and accurate if one could use:
gphoto2 --set-config /main/settings/time=now

I have attached a patch that supports this use of the word 'now'. 
The patch is for the stable version, but applies to the version in 
unstable as well, albeit with a large shift. 
-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (650, 'stable'), (620, 'oldstable'), (500, 'squeeze-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/3 CPU cores)
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gphoto2 depends on:
ii  libaa1                    1.4p5-38       ascii art library
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libcdk5                   5.0.20060507-2 C-based curses widget library
ii  libexif12                 0.6.19-1       library to parse EXIF files
ii  libgphoto2-2              2.4.6-3        gphoto2 digital camera library
ii  libgphoto2-port0          2.4.6-3        gphoto2 digital camera port librar
ii  libjpeg62                 6b1-1          The Independent JPEG Group's JPEG 
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand
ii  libpopt0                  1.16-1         lib for parsing cmdline parameters
ii  libreadline5              5.2-7          GNU readline and history libraries
ii  libslang2                 2.2.2-4        The S-Lang programming library - r
ii  libusb-0.1-4              2:0.1.12-16    userspace USB programming library
ii  libx11-6                  2:1.3.3-4      X11 client-side library

gphoto2 recommends no packages.

Versions of packages gphoto2 suggests:
ii  gthumb                        3:2.11.5-4 an image viewer and browser
pn  gtkam                         <none>     (no description available)

-- no debconf information
--- gphoto2/actions.c~	2009-03-31 22:27:05.000000000 +0200
+++ gphoto2/actions.c	2011-03-17 10:06:43.000000000 +0100
@@ -1528,9 +1528,11 @@ set_config_action (GPParams *p, const ch
 		int	t = -1;
 		struct tm xtm;
 
+		if ( !strcasecmp (value, "now")	|| !strcasecmp (value, _("now")) )
+			t = time(NULL);
 #ifdef HAVE_STRPTIME
-		if (strptime (value, "%c", &xtm) || strptime (value, "%Ec", &xtm))
-			t = mktime (&xtm);
+		else if (strptime (value, "%c", &xtm) || strptime (value, "%Ec", &xtm))
+			t = mktime (&xtm);		
 #endif
 		if (t == -1) {
 			if (!sscanf (value, "%d", &t)) {

--- End Message ---
--- Begin Message ---
Source: gphoto2
Source-Version: 2.4.11-2

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

gphoto2_2.4.11-2.debian.tar.gz
  to main/g/gphoto2/gphoto2_2.4.11-2.debian.tar.gz
gphoto2_2.4.11-2.dsc
  to main/g/gphoto2/gphoto2_2.4.11-2.dsc
gphoto2_2.4.11-2_i386.deb
  to main/g/gphoto2/gphoto2_2.4.11-2_i386.deb



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.
David Paleino <[email protected]> (supplier of updated gphoto2 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: SHA1

Format: 1.8
Date: Sun, 25 Sep 2011 00:09:58 +0200
Source: gphoto2
Binary: gphoto2
Architecture: source i386
Version: 2.4.11-2
Distribution: unstable
Urgency: low
Maintainer: Debian PhotoTools Maintainers 
<[email protected]>
Changed-By: David Paleino <[email protected]>
Description: 
 gphoto2    - The gphoto2 digital camera command-line client
Closes: 618651 641999
Changes: 
 gphoto2 (2.4.11-2) unstable; urgency=low
 .
   * Acknowledge NMU.
   * Build-Depend on libjpeg-dev (Closes: #641999)
   * Support 'now' for time config options, thanks to Arnold
     Metselaar (Closes: #618651)
Checksums-Sha1: 
 5fb0f3391e784458d3a9f000199279b3104e4de7 1550 gphoto2_2.4.11-2.dsc
 17cd42257e7eeb02e0a78b96bd2711b6fbb8a9f8 6639 gphoto2_2.4.11-2.debian.tar.gz
 36e4baaebb3c0baca27fff2dc3686aaf654a19d7 246600 gphoto2_2.4.11-2_i386.deb
Checksums-Sha256: 
 fe84703bdec0204150b585cbfb0a5b4828801b9066df97203ceb744e0e039d3d 1550 
gphoto2_2.4.11-2.dsc
 91ab2d44f7d736132af2063f85b23b75be7bedd9e6f705069b6e6a952aca1531 6639 
gphoto2_2.4.11-2.debian.tar.gz
 314df4e92f25aa3938472314cd68e1e2b6e20078de9fba96b81440cf08f75edc 246600 
gphoto2_2.4.11-2_i386.deb
Files: 
 668bb62b004331cf64eb2c9de8b16c6a 1550 utils extra gphoto2_2.4.11-2.dsc
 0b141e96eb8c64c536dc0f08f4fe809f 6639 utils extra 
gphoto2_2.4.11-2.debian.tar.gz
 0c20cfe9a7ec00d87836f95ebbc9358f 246600 utils extra gphoto2_2.4.11-2_i386.deb

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

iEYEARECAAYFAk5+VhkACgkQ5qqQFxOSsXQ9jACeLESbM/asUiO3f9lDGdSUyVPr
mv4An3ibuKd2j44pBFPFLpDZfeeC/luB
=Fk+T
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to