Commit 121b9364 authored by bescoto's avatar bescoto

Added long conversion to os.utime arguments to avoid type error


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@299 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 4127331b
......@@ -644,7 +644,7 @@ class RPath(RORPath):
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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment