diff options
author | Timo Teräs <timo.teras@iki.fi> | 2019-06-03 16:18:29 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2019-06-03 16:19:17 +0300 |
commit | 1c47f374434aa66fb6620199fd027b96cee446e6 (patch) | |
tree | 3d0c4acc813efd5fd40a1b9d83d1be3e96037856 /src/add.c | |
parent | 37fbafcd928c466c82c892a7868d686d710e5d07 (diff) | |
download | apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.gz apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.bz2 apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.xz apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.zip |
use fixed system time in test mode to have fixed test output
fixes test suite regression from previous commit
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ static int add_main(void *ctx, struct apk_database *db, struct apk_string_array if (virtdep.name->name[0] != '.' && non_repository_check(db)) return -1; - time(&now); + now = apk_time(); localtime_r(&now, &tm); strftime(ver, sizeof ver, "%Y%m%d.%H%M%S", &tm); |