[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime
From: |
Ben Escoto |
Subject: |
Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime) |
Date: |
Tue, 11 Mar 2003 09:14:27 -0800 |
>>>>> "CS" == Christian Skarby <address@hidden>
>>>>> wrote the following on Tue, 11 Mar 2003 09:30:08 +0100 (CET)
CS> Here is something, somewhat strange that happened:
...
CS> I am not sure what we see here, whereas it failed the first
CS> time, it succeeds later.
Yeah, pretty weird. Looking at the python source code, it seems that
utime() tries to convert the arguments to two longs. Maybe this is
failing for some reason? (In the documentation it just says "two
numbers".) Anyway, try this patch and tell me if it solves anything:
--- rpath.py~ 2003-02-28 08:06:31.000000000 -0800
+++ rpath.py 2003-03-11 09:09:43.000000000 -0800
@@ -644,7 +644,7 @@
def setmtime(self, modtime):
"""Set only modtime (access time to present)"""
log.Log(lambda: "Setting time of %s to %d" % (self.path,
modtime), 7)
- self.conn.os.utime(self.path, (time.time(), modtime))
+ self.conn.os.utime(self.path, (long(time.time()), modtime))
self.data['mtime'] = modtime
def chown(self, uid, gid):
--
Ben Escoto
pgpaUJ5dUOxyD.pgp
Description: PGP signature
- [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/06
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Ben Escoto, 2003/03/06
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/10
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Ben Escoto, 2003/03/10
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/11
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime),
Ben Escoto <=
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/13