diff --git a/HISTORY.rst b/HISTORY.rst index 511ccd3a..747d8c48 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -24,10 +24,13 @@ PlatformIO Core 5 * `pio pkg uninstall `_ - uninstall the project dependencies or custom packages * `pio pkg update `__ - update the project dependencies or custom packages + - Package Manifest + + * Added support for `"scripts" `__ (`issue #485 `_) + * Added support for `multi-licensed `__ packages using SPDX Expressions (`issue #4037 `_) + * Added support for `"dependencies" `__ declared in a "tool" package manifest + - Added support for `symbolic links `__ allowing pointing the local source folder to the Package Manager (`issue #3348 `_) - - Added support for `"scripts" `__ in package manifest (`issue #485 `_) - - Added support for `multi-licensed `__ packages using SPDX Expressions (`issue #4037 `_) - - Added support for `"dependencies" `__ declared in a "tool" package manifest - Automatically install dependencies of the local (private) project libraries (`issue #2910 `_) - Ignore files according to the patterns declared in ".gitignore" when using the `pio package pack `__ command (`issue #4188 `_) - Dropped automatic updates of global libraries and development platforms (`issue #4179 `_) diff --git a/platformio/package/manager/_symlink.py b/platformio/package/manager/_symlink.py index 98a03174..ec6e8452 100644 --- a/platformio/package/manager/_symlink.py +++ b/platformio/package/manager/_symlink.py @@ -33,11 +33,9 @@ class PackageManagerSymlinkMixin(object): data = json.load(fp) spec = PackageSpec(**data["spec"]) assert spec.symlink - pkg_dir = os.path.realpath(spec.uri[10:]) - if not os.path.isdir(pkg_dir): - with fs.cd(data["cwd"]): - pkg_dir = os.path.realpath(pkg_dir) - return (pkg_dir if os.path.isdir(pkg_dir) else None, spec) + with fs.cd(data["cwd"]): + pkg_dir = os.path.realpath(pkg_dir) + return (pkg_dir if os.path.isdir(pkg_dir) else None, spec) def get_symlinked_package(self, path): pkg_dir, spec = self.resolve_symlink(path)