diff options
Diffstat (limited to 'main/apk-tools/lua-apk_time.patch')
-rw-r--r-- | main/apk-tools/lua-apk_time.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/main/apk-tools/lua-apk_time.patch b/main/apk-tools/lua-apk_time.patch deleted file mode 100644 index 01b68f369e3..00000000000 --- a/main/apk-tools/lua-apk_time.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/lua-apk.c b/src/lua-apk.c -index 532577a..26129fb 100644 ---- a/src/lua-apk.c -+++ b/src/lua-apk.c -@@ -37,6 +37,15 @@ struct flagmap opendb_flagmap[] = { - {NULL, 0} - }; - -+time_t apk_time(void) -+{ -+#ifdef TEST_MODE -+ return 1559567666; -+#else -+ return time(NULL); -+#endif -+} -+ - /* implemented as luaL_typerror until lua 5.1, dropped in 5.2 - * (C) 1994-2012 Lua.org, PUC-Rio. MIT license - */ |