From e62e844b9e0367a9abbce84d7e3a4e4f8290e98b Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 17 Nov 2023 19:36:03 +0100 Subject: [PATCH] Fix update requirements to make startup faster ##r2pm --- libr/main/r2pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libr/main/r2pm.c b/libr/main/r2pm.c index 0c36151e121b0..6646a3e867da9 100644 --- a/libr/main/r2pm.c +++ b/libr/main/r2pm.c @@ -1223,9 +1223,11 @@ R_API int r_main_r2pm(int argc, const char **argv) { } { char *dbdir = r2pm_dbdir (); - if (!r_file_exists (dbdir)) { + char *readme = r_file_new (dbdir, "..", "README.md", NULL); + if (!r_file_exists (readme)) { r2pm.init = true; } + free (readme); free (dbdir); } if (r2pm.init) {