Skip to content

Commit

Permalink
Do not check for updates when r2pm -r, -h and -H ##r2pm
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jun 28, 2024
1 parent f731dff commit 8b9d194
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libr/main/r2pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ static const char *helpmsg =
" -H variable show the value of given internal environment variable (See -HH)\n"
" -HH show all the internal environment variable values\n"
" -i <pkgname> install/update package and its dependencies (see -c, -g)\n"
" -I information about repository and installed packages\n"
" -I information about the repository and installed packages\n"
" -l list installed packages\n"
" -q be quiet\n"
" -r [cmd ...args] run shell command with R2PM_BINDIR in PATH\n"
" -s [<keyword>] search available packages in database matching a string\n"
" -t [YYYY-MM-DD] force a moment in time to pull the code from the git packages\n"
" -u <pkgname> r2pm -u baleful (See -f to force uninstall)\n"
" -t [YYYY-MM-DD] set a moment in time to pull the code from the git packages\n"
" -u <pkgname> uninstall package (see -f to force uninstall)\n"
" -uci <pkgname> uninstall + clean + install\n"
" -ui <pkgname> uninstall + install\n"
" -U initialize/update database and upgrade all outdated packages\n"
Expand Down Expand Up @@ -1229,20 +1229,23 @@ R_API int r_main_r2pm(int argc, const char **argv) {
r2pm.time = opt.arg;
break;
case 'r':
r_sys_setenv ("R2PM_OFFLINE", "1");
r2pm.run = true;
action = true;
break;
case 'g':
r2pm.global = true;
break;
case 'H':
r_sys_setenv ("R2PM_OFFLINE", "1");
if (!strcmp (opt.arg, "H")) {
r2pm_envhelp (true);
} else {
r2pm_varprint (opt.arg);
}
return 0;
case 'h':
r_sys_setenv ("R2PM_OFFLINE", "1");
if (r2pm.help) {
r2pm.envhelp = true;
} else {
Expand Down

0 comments on commit 8b9d194

Please sign in to comment.