You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/12/18 01:55:24 UTC
[mynewt-newt] 01/02: Don't warn if `version.yml` file is not present
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit 8badcf53ce95c90bfec38d5cf2c6af84b4493bfe
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Tue Dec 17 16:48:01 2019 -0800
Don't warn if `version.yml` file is not present
A repo can optionally contain a `version.yml` file to allow its
version number to be inferred at a particular commit. If this file was
missing, newt would print the following warning:
Could not detect version of installed repo \"%s\"; assuming %s
This commit reduces the severity level of this message from warn to
info.
---
newt/install/install.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newt/install/install.go b/newt/install/install.go
index dd2909f..7ce2792 100644
--- a/newt/install/install.go
+++ b/newt/install/install.go
@@ -146,7 +146,7 @@ func detectVersion(r *repo.Repo) (newtutil.RepoVersion, error) {
Commit: commit,
}
- util.OneTimeWarning(
+ log.Infof(
"Could not detect version of installed repo \"%s\"; assuming %s",
r.Name(), ver.String())
}