You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/11/30 19:53:06 UTC
incubator-mynewt-newt git commit: use isLocal(),
name = 'local' no longer works as a check. This avoids deleting the
project when issuing the sync command.
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop 366024fff -> 037457dd6
use isLocal(), name = 'local' no longer works as a check. This avoids deleting the project when issuing the sync command.
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/037457dd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/037457dd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/037457dd
Branch: refs/heads/develop
Commit: 037457dd6ee06aeeef043a7f8b4f21edae4a99ba
Parents: 366024f
Author: Sterling Hughes <st...@apache.org>
Authored: Wed Nov 30 11:52:58 2016 -0800
Committer: Sterling Hughes <st...@apache.org>
Committed: Wed Nov 30 11:52:58 2016 -0800
----------------------------------------------------------------------
newt/cli/project_cmds.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/037457dd/newt/cli/project_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/project_cmds.go b/newt/cli/project_cmds.go
index 7c0d268..f5eeab0 100644
--- a/newt/cli/project_cmds.go
+++ b/newt/cli/project_cmds.go
@@ -159,9 +159,9 @@ func syncRunCmd(cmd *cobra.Command, args []string) {
NewtUsage(nil, err)
}
- for rName, repo := range repos {
+ for _, repo := range repos {
var exists bool
- if rName == "local" {
+ if repo.IsLocal() {
continue
}
vers := ps.GetInstalledVersion(repo.Name())