public function update() { $repo = $this->getRegistry()->buildVcsRepository($this->getName()); $this->_releases = $this->prepareReleases($repo); $this->getStorage()->writePackage($this); $this->load(); }