Ludovic Courtès e475211869
database: Reset timestamps to one second after the Epoch.
Previously, store items registered in the database by this code (for
instance, store items retrieved by 'guix offload' and passed to
'restore-file-set') would have an mtime of 0 instead of 1.

This would cause problems for things like .go files: Guile would
consider them to be older than the corresponding .scm file, and
consequently it would ignore them and possibly use another (incorrect)
.go file.

Reported by Ricardo Wurmus.

* guix/store/database.scm (reset-timestamps): Pass 1, not 0, to
'utime'.
* tests/store-database.scm ("register-path"): Check the mtime of FILE
and REF.
2018-07-20 15:01:33 +02:00
..
2018-07-13 15:23:40 +02:00
2017-07-21 17:03:24 +02:00
2018-03-28 16:17:06 +02:00
2017-01-28 18:55:20 +01:00
2017-05-03 16:16:17 +02:00
2017-11-08 22:31:58 +01:00
2018-03-20 17:17:58 +01:00
2018-06-01 15:21:28 +02:00
2018-06-14 11:17:00 +02:00
2017-12-12 18:11:22 +01:00
2018-07-19 11:48:04 +02:00
2018-07-19 11:48:04 +02:00
2018-07-11 00:53:04 +02:00