You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2020/01/28 22:18:20 UTC

[mynewt-newt] branch master updated: Fix downloading repo dependencies

This is an automated email from the ASF dual-hosted git repository.

utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git


The following commit(s) were added to refs/heads/master by this push:
     new 9db4d91  Fix downloading repo dependencies
9db4d91 is described below

commit 9db4d917e35a7810362d32817838ce206eb644bc
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Tue Jan 28 16:50:05 2020 -0300

    Fix downloading repo dependencies
    
    This is a bug left after a previous commit that fixed the download
    behaviror to only happen for network related commands, like `upgrade`.
    The repo dependencies was left non-updated at the time, so it would not
    be possible to resume/retry failures in downloads of dependencies. The
    bug can also be reproduced by simply removing (`rm -rf`) any repo that
    is included as dependency of some other repo.
    
    Signed-off-by: Fabio Utzig <ut...@apache.org>
---
 newt/project/project.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newt/project/project.go b/newt/project/project.go
index 10f10bc..42f443b 100644
--- a/newt/project/project.go
+++ b/newt/project/project.go
@@ -583,7 +583,7 @@ func (proj *Project) loadConfig(download bool) error {
 	// Read `repository.yml` files belonging to dependee repos from disk.
 	// These repos might not be specified in the `project.yml` file, but they
 	// are still part of the project.
-	if err := proj.loadRepoDeps(false); err != nil {
+	if err := proj.loadRepoDeps(download); err != nil {
 		return err
 	}