From 1b5991425df6ac07b7da64c16c3f13bc6ef3d518 Mon Sep 17 00:00:00 2001 From: Netkas Date: Tue, 20 Dec 2022 15:00:03 -0500 Subject: [PATCH] Updated \ncc\Objects > PackageLock > addPackage() https://git.n64.cc/nosial/ncc/-/issues/41 --- src/ncc/Objects/PackageLock.php | 3 ++- src/ncc/Runtime.php | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ncc/Objects/PackageLock.php b/src/ncc/Objects/PackageLock.php index 989164c..b79bc49 100644 --- a/src/ncc/Objects/PackageLock.php +++ b/src/ncc/Objects/PackageLock.php @@ -73,7 +73,8 @@ } $this->Packages[$package->Assembly->Package]->UpdateSource = $package->Header->UpdateSource; - $this->Packages[$package->Assembly->Package]->addVersion($package, true); + $this->Packages[$package->Assembly->Package]->addVersion($package, $install_path, true); + $this->Packages[$package->Assembly->Package]->addVersion($package, $install_path, true); $this->Packages[$package->Assembly->Package]->getDataPath(); $this->update(); } diff --git a/src/ncc/Runtime.php b/src/ncc/Runtime.php index 6bb63ba..3e45114 100644 --- a/src/ncc/Runtime.php +++ b/src/ncc/Runtime.php @@ -98,7 +98,6 @@ throw new ImportException(sprintf('Version %s of %s is not installed', $version, $package), $e); } - try { if (self::isImported($package, $version))