From bda292fbb1288f367606521bf46e504ebfc219fa Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 16 Jul 2015 16:44:31 -0400 Subject: [PATCH] command-not-found: Be less verbose --- packages/command-not-found/build.sh | 2 +- packages/command-not-found/command-not-found.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/command-not-found/build.sh b/packages/command-not-found/build.sh index c1d033eb..c5a663e4 100644 --- a/packages/command-not-found/build.sh +++ b/packages/command-not-found/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=http://termux.com TERMUX_PKG_DESCRIPTION="Suggest installation of packages in interactive shell sessions" -TERMUX_PKG_VERSION=0.4 +TERMUX_PKG_VERSION=0.5 termux_step_make_install () { TERMUX_LIBEXEC_DIR=$TERMUX_PREFIX/libexec/termux diff --git a/packages/command-not-found/command-not-found.c b/packages/command-not-found/command-not-found.c index b06c8c73..42e4e482 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 currently not installed. You can 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 apt install %s\n", binary_name, current_package); return 0; } else if (best_distance == distance) { guesses_at_best_distance++; -- 2.11.0