Skip to content
Snippets Groups Projects
Commit f64a0f97 authored by Daniel Hürtgen's avatar Daniel Hürtgen Committed by GitHub
Browse files

Merge pull request #19 from higidi/bugfix/18-Installer_isInstalled-seems-not-to-work

Bugfix/18 installer is installed seems not to work
parents ecb4fea6 817f0dbe
Branches
Tags
No related merge requests found
......@@ -43,6 +43,9 @@ class Installer extends LibraryInstaller
public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
{
$isInstalled = parent::isInstalled($repo, $package);
if (!$isInstalled) {
return $isInstalled;
}
$sourceStandards = $this->getSourceStandards($package);
$destinationStandards = $this->getDestinationStandards($repo);
......@@ -160,7 +163,7 @@ class Installer extends LibraryInstaller
protected function compareStandards(Standard $source, Standard $destination)
{
return $source->getName() === $destination->getName()
&& sha1($source->getRuleSetXmlPath()) === sha1($destination->getRuleSetXmlPath());
&& sha1_file($source->getRuleSetXmlPath()) === sha1_file($destination->getRuleSetXmlPath());
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment