Your message dated Wed, 19 Aug 2015 09:50:01 +0000
with message-id <[email protected]>
and subject line Bug#756198: fixed in eyefiserver 2.4+dfsg-1
has caused the Debian Bug report #756198,
regarding [eyefiserver] Add an option to correct modification files
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.)
--
756198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756198
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: eyefiserver
Version: 2.3~rc2+dfsg-1
Severity: wishlist
Tags: patch
--- Please enter the report below this line. ---
File modification times which EyeFi firmware (on Pro X2 at least) puts into the
tarfile are in local time, not UTC as in standard tar files, so images get
wrong
timestamps while extracting. An attempt to correct this proposed with the
patch.
--- System information. ---
Architecture: amd64
Kernel: Linux 3.14.12-custom0-amd64
Debian Release: jessie/sid
990 stable security.debian.org
990 stable kxstudio.sourceforge.net
990 stable ftp.fi.debian.org
990 stable dl.google.com
990 stable deb.torproject.org
500 testing security.debian.org
500 testing ftp.fi.debian.org
500 testing deb.torproject.org
500 lucid ppa.launchpad.net
100 unstable deb.i2p2.no
100 jessie-backports ftp.debian.org
--- Package information. ---
Depends (Version) | Installed
======================-+-===========
python | 2.7.8-1
Package's Recommends field is empty.
Package's Suggests field is empty.
diff -uri a/etc/eyefiserver.conf b/etc/eyefiserver.conf
--- a/etc/eyefiserver.conf 2012-10-17 19:44:55.000000000 +0600
+++ b/etc/eyefiserver.conf 2014-07-27 17:36:47.000000000 +0600
@@ -34,6 +34,11 @@
use_date_from_file=no
+# EyeFi puts local timestamp into its tarfile instead UTC, so extracted files
+# get wrong modification time. This behavior is corrected by default.
+# If it's not what you want, put 'no' here.
+
+#correct_mtime=no
# This parameter executes the specified command on each incoming file passing in
# the full file path as the first argument.
diff -uri a/src/eyefiserver b/src/eyefiserver
--- a/src/eyefiserver 2012-10-17 19:44:55.000000000 +0600
+++ b/src/eyefiserver 2014-07-27 17:37:46.000000000 +0600
@@ -52,6 +52,7 @@
from BaseHTTPServer import BaseHTTPRequestHandler
import BaseHTTPServer
import SocketServer
+import time
# Default is to listen to all addresses on port 59278
# Exemple: SERVER_ADDRESS = '127.0.0.1', 59278
@@ -680,12 +681,18 @@
use_date_from_file = self.server.config.get(macaddress,
'use_date_from_file', False)
+ correct_mtime = self.server.config.getboolean(macaddress,
+ 'correct_mtime', True)
+
# if needed, get reference date from the tar fragment
# This is possible because the tar content is at the begining
if use_date_from_file:
tarinfo = imagetarfile.getmembers()[0]
imageinfo = tarinfo.get_info(encoding=None, errors=None)
- reference_date = datetime.fromtimestamp(imageinfo['mtime'])
+ if correct_mtime:
+ reference_date = datetime.utcfromtimestamp(imageinfo['mtime'])
+ else:
+ reference_date = datetime.fromtimestamp(imageinfo['mtime'])
else:
reference_date = datetime.now()
@@ -704,6 +711,11 @@
imagefilename = imagetarfile.getnames()[0]
imagetarfile.extractall(path=upload_dir)
+ if correct_mtime:
+ corr_mtime = time.mktime(reference_date.timetuple())
+ os.utime(os.path.join(upload_dir, imagefilename),
+ (corr_mtime, corr_mtime))
+
eyeFiLogger.debug("Closing TAR file %s", tarpath)
imagetarfile.close()
--- End Message ---
--- Begin Message ---
Source: eyefiserver
Source-Version: 2.4+dfsg-1
We believe that the bug you reported is fixed in the latest version of
eyefiserver, 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.
Jean-Michel Vourgère <[email protected]> (supplier of updated eyefiserver
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: Wed, 19 Aug 2015 10:57:13 +0200
Source: eyefiserver
Binary: eyefiserver
Architecture: source all
Version: 2.4+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Jean-Michel Vourgère <[email protected]>
Changed-By: Jean-Michel Vourgère <[email protected]>
Description:
eyefiserver - Daemon to receive images from Eye-Fi SD card
Closes: 756198
Changes:
eyefiserver (2.4+dfsg-1) unstable; urgency=medium
.
* New upstream version:
- Added an option to correct modification files. (Closes: #756198)
- Refreshed patches.
* Use a locale independent date format in manuals.
* Updated my email address.
* Improved d/watch. Thanks Bart Martens.
* Updated python dependency to explicitly use version 2.
Checksums-Sha1:
c0c433f261c4517586d470ec9d6ec6c3deb3a6ba 1895 eyefiserver_2.4+dfsg-1.dsc
6d0d794b42043e86d806b8a5ba517ef531048731 30308 eyefiserver_2.4+dfsg.orig.tar.gz
a9a25f8d0e810459300c48ad33ac5d5bf92265b5 5180
eyefiserver_2.4+dfsg-1.debian.tar.xz
7b367a252eeddbc8ee8ef7c3018208e06e83e484 23478 eyefiserver_2.4+dfsg-1_all.deb
Checksums-Sha256:
8c7654c050dc2b3a40c41bea6080cafa45d2136c80aa3adec328dc1e37c0c406 1895
eyefiserver_2.4+dfsg-1.dsc
7ff7581aa8e2ccb9f20a2510e5420340d8a39571a995412ebf61646ae3e7ebb5 30308
eyefiserver_2.4+dfsg.orig.tar.gz
d5bcd0a2feb348545cc1fdce7eb74ed501c67f14ad5e1c0cb9288553cffd2816 5180
eyefiserver_2.4+dfsg-1.debian.tar.xz
cdbc9422f5458659aab1c613a21300bfcdfc3e2ab94b34c993d228c09e4fe02e 23478
eyefiserver_2.4+dfsg-1_all.deb
Files:
a03cc5de85b808bb1d50673eb162aaec 1895 net optional eyefiserver_2.4+dfsg-1.dsc
b9d4d0ed06a8396115bc8b9db966e407 30308 net optional
eyefiserver_2.4+dfsg.orig.tar.gz
714766d3233e8051b56656f1dc5485c4 5180 net optional
eyefiserver_2.4+dfsg-1.debian.tar.xz
7b226f9bcad0c24bfd3d236deb6d7870 23478 net optional
eyefiserver_2.4+dfsg-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJV1EaIAAoJEDtcLHGiGNg8oe8P/j/n28kGzilONXytpL8wPTO6
mP2VGKse7D6Dasd3rpCs7i2DgFdyM3NyMV/H0lQ29OOyjORH5Idateu8k4ZqdDi0
g9BVvzVJV+PQ/dslKfgsutJ/Pl8+Zb1kf2qMNcv7H3+keGQBowz1WxVLY4owT1LI
bLMPPVKE7Iawuwbs0bb6wiON2pyNUb/j3R04CjUt9QuEjo+Wsjftnk4slNFDx9ZU
p9J1nf6vWontTI63HdO1HdDiN+wCtrPiVpE6z4LtCtEHgdk/9wZK9tARDx0VdXd3
/Sdx1qhAqff3hQhoDaXWOIFH+mT/cmYtgqmtRXZB4M8poL/5cc5inB2qaB9oU4xx
UtTe4V9b07ILA1SdZzFSJU7TutIS1+Nmhgd7uf7QI3S4bQs2tcjcuVxZavu2n/QE
VVCW8bjE+PQOnU7tjC2qFB/8Jk3r7wM8iY6XKopiO4kIsIbNYlA+/3BDOgswb1Su
WI2h08qL+R8lXTIWwVRC+8rr+JMh9/R4LnyxWR9EaBeSg1i/dVbU6vxFQ/G4JV9D
vWylCfqfPctieDIJGG5AFVK5uEpx7J/nJWgM2XFxbK/awCv8h2WAS0Z8FOKZwOOs
OrwNhsIvZ6gY/aOUSEl8ZNAORJAuDGVMsj2DoKMHXyXtct5Vef328UJyFoRUX3fX
GjXwmiNaQvMbA4Evy0/N
=hZuB
-----END PGP SIGNATURE-----
--- End Message ---