]> git.donarmstrong.com Git - neurodebian.git/commitdiff
ENH: minor -- rename apt file into -failed.disabled (not .failed-disabled)
authorYaroslav Halchenko <debian@onerussian.com>
Fri, 27 Jun 2014 17:32:29 +0000 (13:32 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Fri, 27 Jun 2014 17:32:29 +0000 (13:32 -0400)
otherwise apt would still whine (just a warning though) about it having
an incorrect extension

tools/nd-aptenable

index 69de3d7e752cf4a6f0c64f1b71ff9649f06a7b6b..2d4c36e15f6094aa667077cb1e6f2d7df2c07afa 100755 (executable)
@@ -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)."
              }