summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 2819281..069f4c0 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -47,6 +47,15 @@ static struct apk_string_array *test_repos;
char **apk_argv;
+time_t apk_time(void)
+{
+#ifdef TEST_MODE
+ return 1559567666;
+#else
+ return time(NULL);
+#endif
+}
+
static void version(void)
{
printf("apk-tools " APK_VERSION ", compiled for " APK_DEFAULT_ARCH ".\n"