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
diff --git a/project.py b/project.py
index 4f2b203..a8d012d 100644
--- a/project.py
+++ b/project.py
@@ -2227,7 +2227,7 @@
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)