Ejemplo n.º 1
0
 public function validate($identifier)
 {
     self::locatePackageSource($identifier);
     $package = Package_Catalog::getPackageByIdentifier($identifier);
     if ($package['status'] != Package_Manager::STATUS_UNINSTALLED) {
         throw new Package_Operation_Exception('Install is not a sane operation for a package with status ' . $package['status'], $identifier);
     }
     Package_Message::log('debug', 'Package management executing Package_Operation_Verify::exec(' . $identifier . ')');
     Package_Operation_Verify::exec($identifier);
 }
Ejemplo n.º 2
0
 public function validate($identifier)
 {
     self::locatePackageSource($identifier);
     $package = Package_Catalog::getPackageByIdentifier($identifier);
     $from = Package_Catalog::getInstalledPackage($package['packageName']);
     if (empty($from)) {
         throw new Package_Operation_Exception('Migrate could not determine the package that is being updated', $identifier);
     }
     $from = $from['identifier'];
     Package_Message::log('debug', 'Package management executing Package_Operation_Verify::exec(' . $identifier . ')');
     Package_Operation_Verify::exec($identifier);
 }
Ejemplo n.º 3
0
 public function validate($identifier)
 {
     Package_Message::log('debug', 'Package management executing Package_Operation_Verify::exec(' . $identifier . ')');
     // TODO: If this failes find unistall all dependent packages
     Package_Operation_Verify::exec($identifier);
 }