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
..
2017-01-26 13:49:56 +01:00
2015-11-26 22:35:01 +01:00
2018-07-11 07:08:54 +03:00
2018-06-06 14:37:35 +02:00
2015-10-19 10:10:47 +02:00
2018-03-27 14:51:44 +02:00
2018-07-05 21:35:55 +02:00
2018-07-19 11:48:04 +02:00
2018-07-10 10:11:01 +02:00
2017-09-28 13:10:10 +02:00
2017-06-18 00:14:07 +02:00
2018-07-19 11:48:04 +02:00
2017-06-15 17:03:19 +02:00
2018-05-10 14:53:56 +02:00
2018-05-13 13:29:27 +02:00
2017-11-17 10:47:49 +01:00