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 2017/04/07 19:36:09 UTC
[08/23] incubator-mynewt-newt git commit: MYNEWT-655 newt - Detect
newt version incompat.
MYNEWT-655 newt - Detect newt version incompat.
Correctly handle case where project imposes no newt version
restrictions.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/cd6aa05a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/cd6aa05a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/cd6aa05a
Branch: refs/heads/master
Commit: cd6aa05ad717f1cf1b3e13c04cb46795c8123e20
Parents: b1ecb9f
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Mar 7 14:03:48 2017 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Mar 7 14:03:48 2017 -0800
----------------------------------------------------------------------
newt/project/project.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/cd6aa05a/newt/project/project.go
----------------------------------------------------------------------
diff --git a/newt/project/project.go b/newt/project/project.go
index 6778c8b..42015bb 100644
--- a/newt/project/project.go
+++ b/newt/project/project.go
@@ -443,7 +443,7 @@ func (proj *Project) checkNewtVer() error {
compatSms := proj.v.GetStringMapString("project.newt_compatibility")
// If this project doesn't have a newt compatibility map, just assume there
// is no incompatibility.
- if compatSms == nil {
+ if len(compatSms) == 0 {
return nil
}