Skip to content

Commit 1fac39f

Browse files
committed
Fix infinite loop in r2pm on termux
1 parent 1960add commit 1fac39f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libr/main/r2pm.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,11 @@ static int r2pm_install_pkg(const char *pkg, bool clean, bool global) {
712712
if (error) {
713713
if (r2pm_check ("apt") && r_file_is_directory ("/system/bin")) {
714714
if (r_cons_yesno ('y', "Install system dependencies (Y/n)")) {
715-
const char *const cmd = "apt install build-essential git make patch python wget binutils";
715+
const char *const cmd = "apt install build-essential ninja meson git make patch python wget binutils";
716716
R_LOG_INFO ("Running %s", cmd);
717-
r_sys_cmd (cmd);
718-
return r2pm_install_pkg (pkg, clean, global);
717+
if (r_sys_cmd (cmd) == 0) {
718+
return r2pm_install_pkg (pkg, clean, global);
719+
}
719720
}
720721
}
721722
return -1;

0 commit comments

Comments
 (0)