Skip to content

Commit

Permalink
Fix update requirements to make startup faster ##r2pm
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 17, 2023
1 parent 9f598b5 commit e62e844
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libr/main/r2pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e62e844

Please sign in to comment.