aboutsummaryrefslogtreecommitdiffstats
path: root/fusearchive.py
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-11-03 22:40:58 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-11-03 22:40:58 (GMT)
commit9f97b595e6f7b320333d039ff249ff436652daff (patch)
tree0e26813d1f697aaeb634d2c3ba4b79fa539ee20d /fusearchive.py
parent8a2c03fe1c4ce3e23b117922ee587dc7ad46126c (diff)
downloadfusearchive-9f97b595e6f7b320333d039ff249ff436652daff.zip
fusearchive-9f97b595e6f7b320333d039ff249ff436652daff.tar.gz
fusearchive-9f97b595e6f7b320333d039ff249ff436652daff.tar.bz2
Override the problem utimens setup
Diffstat (limited to 'fusearchive.py')
-rwxr-xr-xfusearchive.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 624cc3c..13e0ab7 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -13,6 +13,13 @@ import FuseArchive
enable_stats = False
enable_psyco = False
+# Redefine the timespec class so that fuse doesn't break when rsync does a
+# utimens call
+def junkutimens(self, *whatever, **whatevermore):
+ self.tv_sec = None
+ self.tv_nsec = None
+fuse.Timespec.__init__ = junkutimens
+
if enable_psyco:
# Import Psyco if available
try: