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))