summaryrefslogtreecommitdiff
path: root/src/add.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-06-03 16:18:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2019-06-03 16:19:17 +0300
commit1c47f374434aa66fb6620199fd027b96cee446e6 (patch)
tree3d0c4acc813efd5fd40a1b9d83d1be3e96037856 /src/add.c
parent37fbafcd928c466c82c892a7868d686d710e5d07 (diff)
downloadapk-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/add.c b/src/add.c
index 7df8197..2d342ab 100644
--- a/src/add.c
+++ b/src/add.c
@@ -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);