]> arthur.barton.de Git - bup.git/commit - t/test-meta.sh
Add atime tests and fix atime capture in metadata.from_path().
authorRob Browning <rlb@defaultvalue.org>
Wed, 26 Jan 2011 03:04:39 +0000 (21:04 -0600)
committerRob Browning <rlb@defaultvalue.org>
Wed, 26 Jan 2011 03:04:39 +0000 (21:04 -0600)
commit2c94de9acd6304131e61e02a8e662bb0ee4b4bf0
treed197d897d929052f2e58d29e19f87a283c8e348c
parent26b560b620655755d1233216b242bab1d9180f84
Add atime tests and fix atime capture in metadata.from_path().

Adjust metadata.from_path() to accept an optional statinfo argument.
This allows us to pass in the value returned by recursive_dirlist()
during a save_tree().  Otherwise the second lstat(), in from_path(),
will receive an incorrect atime, one which has been adjusted by the
recursive_dirlist() stat().  Of course, this also allows us to drop an
unnecessary lstat() call.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py
t/test-meta.sh