Development

Changeset 8893

You must first sign up to be able to contribute.

Changeset 8893

Show
Ignore:
Timestamp:
05/10/08 14:01:06 (2 months ago)
Author:
fabien
Message:

modified plugin:install error message if no version is available for installation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugin/sfPluginManager.class.php

    r8813 r8893  
    433433    if (is_null($version)) 
    434434    { 
    435       $version = $this->getPluginVersion($plugin, $stability); 
     435      try 
     436      { 
     437        $version = $this->getPluginVersion($plugin, $stability); 
     438      } 
     439      catch (Exception $e) 
     440      { 
     441        // no release available 
     442        return false; 
     443      } 
    436444    } 
    437445 
  • branches/1.1/lib/task/plugin/sfPluginInstallTask.class.php

    r8813 r8893  
    115115      } 
    116116 
    117       $temp = trim(str_replace('license', '', strtolower($license))); 
    118       if (!is_null($license) && !in_array($temp, array('mit', 'bsd', 'lgpl', 'php', 'apache'))) 
     117      if (false !== $license) 
    119118      { 
    120         throw new sfCommandException(sprintf('The license of this plugin "%s" is not MIT like (use --force-license to force installation).', $license)); 
     119        $temp = trim(str_replace('license', '', strtolower($license))); 
     120        if (!is_null($license) && !in_array($temp, array('mit', 'bsd', 'lgpl', 'php', 'apache'))) 
     121        { 
     122          throw new sfCommandException(sprintf('The license of this plugin "%s" is not MIT like (use --force-license to force installation).', $license)); 
     123        } 
    121124      } 
    122125    }