code: public function markAliasInstalled(RepositoryInterface $repo, MarkAliasInstalledOperation $operation)
      {
          $package = $operation->getPackage();
  
          if (!$repo->hasPackage($package)) {
              $repo->addPackage(clone $package);
          }
      }
docs: Executes markAliasInstalled operation.
  
  @param RepositoryInterface         $repo      repository in which to check
  @param MarkAliasInstalledOperation $operation operation instance