xaav 14 years ago
parent
commit
954b082fbb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Packagist/WebBundle/Command/UpdatePackagesCommand.php

+ 3 - 3
src/Packagist/WebBundle/Command/UpdatePackagesCommand.php

@@ -72,7 +72,7 @@ EOF
 
 
                 $repoData = $repo->getRepoData();
                 $repoData = $repo->getRepoData();
                 if (!$repoData) {
                 if (!$repoData) {
-                    $output->writeln('Err: Could not fetch data from: '.$repo->getSource().', skipping.');
+                    $output->writeln('Err: Could not fetch data from: '.$repo->getUrl().', skipping.');
                     continue;
                     continue;
                 }
                 }
 
 
@@ -88,7 +88,7 @@ EOF
                     }
                     }
 
 
                     if ($data['name'] !== $package->getName()) {
                     if ($data['name'] !== $package->getName()) {
-                        $output->writeln('Err: Package name seems to have changed for '.$repo->getSource().'@'.$uniqid.', skipping');
+                        $output->writeln('Err: Package name seems to have changed for '.$repo->getUrl().'@'.$uniqid.', skipping');
                         continue;
                         continue;
                     }
                     }
 
 
@@ -110,7 +110,7 @@ EOF
                     $version->setPackage($package);
                     $version->setPackage($package);
                     $version->setUpdatedAt(new \DateTime);
                     $version->setUpdatedAt(new \DateTime);
                     $version->setReleasedAt(new \DateTime($data['time']));
                     $version->setReleasedAt(new \DateTime($data['time']));
-                    $version->setSource(array('type' => 'git', 'url' => $repo->getSource()));
+                    $version->setSource(array('type' => 'git', 'url' => $repo->getUrl()));
                     $version->setDist($repo->getDist($uniqid));
                     $version->setDist($repo->getDist($uniqid));
 
 
                     if (isset($data['keywords'])) {
                     if (isset($data['keywords'])) {