protected function getPackageVersions($id)
    {
        $localPackage  = $this->get('package.repository')->findOneById($id);
        $remotePackage = $this->get('package.helper')->getPackage($localPackage->getFullName());
        $versions      = $remotePackage->getVersions();
        $result        = [];
        
        foreach ($versions as $version) {
            $this->getPackageInfo($version, $result);
        }
        
        return $result;
    }