From e81ee6c7a256d92887b8c3f38a8e09841b2a7d40 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 27 Jun 2014 13:32:29 -0400 Subject: [PATCH] ENH: minor -- rename apt file into -failed.disabled (not .failed-disabled) otherwise apt would still whine (just a warning though) about it having an incorrect extension --- tools/nd-aptenable | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nd-aptenable b/tools/nd-aptenable index 69de3d7..2d4c36e 100755 --- a/tools/nd-aptenable +++ b/tools/nd-aptenable @@ -499,8 +499,8 @@ if [ -z "$ae_dry_run" ]; then apt_log=$(cat "$apt_logfile") echo "$apt_log" if echo "$apt_log" | grep -q "Malformed line [0-9]* in source list $ae_output_file"; then - $ae_sudo mv "${ae_output_file}" "${ae_output_file}.failed-disabled" - error 6 "Update failed to possible errorneous APT listing file produced by this script. Generated $ae_output_file renamed to ${ae_output_file}.failed-disabled to not interfer" + $ae_sudo mv "${ae_output_file}" "${ae_output_file}-failed.disabled" + error 6 "Update failed to possible errorneous APT listing file produced by this script. Generated $ae_output_file renamed to ${ae_output_file}-failed.disabled to not interfer" fi error 5 "Update failed with exit code $? (above output logged into $apt_logfile)." } -- 2.39.2