private function verifyZip($composerFile, $zipPath, $info)
{
$zip = new \ZipArchive();
$zip->open($zipPath);
$content = $zip->getFromName('Package/composer.json');
$zip->close();
if (sha1_file($composerFile) !== sha1($content)) {
throw new Exception\ChecksumMismatchException('
Package ' . $info['name'] . '@' . $info['version'] . '
is already zipped with the given version but
the zip composer.json checksum does not match the package/composer.json checksum
maybe you forgot to increment the package/composer.json version?');
}
}