forked from platformio/platformio-core
Skip non-existing package when checking for update// Resolve #3818
This commit is contained in:
1 parent
4012a86cac
commit
8ff270c5f7
1 file changed
+4
-1
@@ -26,7 +26,10 @@ class PackageManagerUpdateMixin(object):
|
||||
def outdated(self, pkg, spec=None):
|
||||
assert isinstance(pkg, PackageItem)
|
||||
assert not spec or isinstance(spec, PackageSpec)
|
||||
assert os.path.isdir(pkg.path) and pkg.metadata
|
||||
assert pkg.metadata
|
||||
|
||||
if not os.path.isdir(pkg.path):
|
||||
return PackageOutdatedResult(current=pkg.metadata.version)
|
||||
|
||||
# skip detached package to a specific version
|
||||
detached_conditions = [
|
||||
|
||||
Reference in new issue
Block a user