From: Fredrik Fornwall Date: Mon, 20 Mar 2017 19:22:57 +0000 (+0100) Subject: command-not-found: Instruct to use 'packages' X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/6ebd8dafa555cb139b4b976c8a02e7cf26451a62 command-not-found: Instruct to use 'packages' Running 'packages install' wraps apt to run 'apt update' before running 'apt install', so it should avoid the initial confusion with 'apt install' not working for any packages. --- diff --git a/packages/command-not-found/command-not-found.c b/packages/command-not-found/command-not-found.c index a43a8ea6..6a02347d 100644 --- a/packages/command-not-found/command-not-found.c +++ b/packages/command-not-found/command-not-found.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) { char const* binary_name = current_line + 1; int distance = termux_levenshtein_distance(command_not_found, binary_name); if (distance == 0 && strcmp(command_not_found, binary_name) == 0) { - printf("The program '%s' is not installed. Install it by executing:\n apt install %s\n", binary_name, current_package); + printf("The program '%s' is not installed. Install it by executing:\n packages install %s\n", binary_name, current_package); return 127; } else if (best_distance == distance) { guesses_at_best_distance++;