index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-07-31 21:16:30 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-23 09:20:32 -0500 |
commit | b3033a59e922684a41b00bd94f8976995dd015da (patch) | |
tree | 569ddceb5dcd3440642a7f6195c4d3821aa9278e /pactest/pmfile.py | |
parent | 5b51dbb11e2087e1055be24b486502be806b5e13 (diff) |
-rwxr-xr-x | pactest/pmfile.py | 8 |
diff --git a/pactest/pmfile.py b/pactest/pmfile.py index 21baf017..ab4aa2c7 100755 --- a/pactest/pmfile.py +++ b/pactest/pmfile.py @@ -56,6 +56,14 @@ class pmfile: return retval + def resettimes(self): + """ + """ + + filename = os.path.join(self.root, self.name) + os.utime(filename, (355, 355)) + self.mtime = getmtime(filename) + vprint("\tmtime reset (%s)" % self.name) if __name__ == "__main__": f = pmfile("/tmp", "foobar") |