From 1c47f374434aa66fb6620199fd027b96cee446e6 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 3 Jun 2019 16:18:29 +0300 Subject: use fixed system time in test mode to have fixed test output fixes test suite regression from previous commit --- src/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/add.c') 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); -- cgit v1.2.3-70-g09d2