Changeset 544

Show
Ignore:
Timestamp:
2006-03-23 10:21:39 (6 months ago)
Author:
coderanger
Message:

HackInstallPlugin:

Check easy_install for errors.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hackinstallplugin/0.9/hackinstall/core.py

    r542 r544  
    5353        command = "easy_install -m --install-dir=%s --record=%s %s/svn/%s/%s" % (plugins_dir, temp_file.name, self.url, name.lower(), self.version) 
    5454        self.env.log.info('Running os.system(%s)'%command) 
    55         os.system(command) 
     55        rv = os.system(command) 
     56        if rv != 0: 
     57            self.env.log.warning("easy_install failed with a return code of %s. Please look in your webserver's error log for the output") 
     58            return (False, None) 
    5659         
    5760        # Retrieve the installed files