Skip to content

Commit

Permalink
Make -U implicit when there's no dbdir cloned yet ##r2pm
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 6, 2023
1 parent 36e12c4 commit d0ab1ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libr/main/r2pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,13 @@ R_API int r_main_r2pm(int argc, const char **argv) {
}
return r2pm.rc;
}
{
char *dbdir = r2pm_dbdir ();
if (!r_file_exists (dbdir)) {
r2pm.init = true;
}
free (dbdir);
}
if (r2pm.init) {
r2pm_update (r2pm.force);
}
Expand Down

0 comments on commit d0ab1ab

Please sign in to comment.