Переглянути джерело

project.py: Improve message shown when hook is not replaced

If a hook file has been modified locally, it will not be replaced.

Improve the message to make this clearer.

Also change it from an error to a warning.

Change-Id: I62c635390f24d2868db17717c247861b0381c99f
David Pursehouse 10 роки тому
батько
коміт
dc2545cad6
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      project.py

+ 1 - 1
project.py

@@ -2227,7 +2227,7 @@ class Project(object):
         if filecmp.cmp(stock_hook, dst, shallow=False):
           os.remove(dst)
         else:
-          _error("%s: Not replacing %s hook", self.relpath, name)
+          _warn("%s: Not replacing locally modified %s hook", self.relpath, name)
           continue
       try:
         os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)