You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/01/17 23:41:47 UTC
[GitHub] ccollins476ad closed pull request #117: newt - Warn instead of fail on broken links.
ccollins476ad closed pull request #117: newt - Warn instead of fail on broken links.
URL: https://github.com/apache/mynewt-newt/pull/117
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/newt/pkg/localpackage.go b/newt/pkg/localpackage.go
index 3b43687..c259bed 100644
--- a/newt/pkg/localpackage.go
+++ b/newt/pkg/localpackage.go
@@ -429,7 +429,7 @@ func ReadLocalPackageRecursive(repo *repo.Repo,
dirList, err := repo.FilteredSearchList(pkgName, searchedMap)
if err != nil {
- return warnings, util.NewNewtError(err.Error())
+ return append(warnings, err.Error()), nil
}
for _, name := range dirList {
@@ -445,9 +445,7 @@ func ReadLocalPackageRecursive(repo *repo.Repo,
}
}
- if util.NodeNotExist(filepath.Join(basePath, pkgName,
- PACKAGE_FILE_NAME)) {
-
+ if util.NodeNotExist(filepath.Join(basePath, pkgName, PACKAGE_FILE_NAME)) {
return warnings, nil
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services