Updated \ncc\Objects > PackageLock > addPackage()

https://git.n64.cc/nosial/ncc/-/issues/41
This commit is contained in:
Netkas 2022-12-20 15:00:03 -05:00
parent 8ff91590d2
commit 1b5991425d
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,8 @@
} }
$this->Packages[$package->Assembly->Package]->UpdateSource = $package->Header->UpdateSource; $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->Packages[$package->Assembly->Package]->getDataPath();
$this->update(); $this->update();
} }

View file

@ -98,7 +98,6 @@
throw new ImportException(sprintf('Version %s of %s is not installed', $version, $package), $e); throw new ImportException(sprintf('Version %s of %s is not installed', $version, $package), $e);
} }
try try
{ {
if (self::isImported($package, $version)) if (self::isImported($package, $version))