[ 
https://issues.apache.org/jira/browse/CB-9556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14723241#comment-14723241
 ] 

ASF GitHub Bot commented on CB-9556:
------------------------------------

Github user vladimir-kotikov commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/287#discussion_r38295456
  
    --- Diff: cordova-lib/src/plugman/install.js ---
    @@ -273,8 +273,13 @@ function runInstall(actions, platform, project_dir, 
plugin_dir, plugins_dir, opt
         var platformJson = PlatformJson.load(plugins_dir, platform);
     
         if (platformJson.isPluginInstalled(pluginInfo.id)) {
    +        var msg = 'Plugin "' + pluginInfo.id + '" already installed on ' + 
platform + '.';
    --- End diff --
    
    Done.


> Plugin install/uninstall does not do proper ref count
> -----------------------------------------------------
>
>                 Key: CB-9556
>                 URL: https://issues.apache.org/jira/browse/CB-9556
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Vladimir Kotikov
>            Assignee: Vladimir Kotikov
>
> If the plugin B is installed by {{cordova plugin add}} command after it was 
> already installed as a dependency to another plugin A it is sill marked as 
> dependency and will be removed after uninstallation of A.
> *Repro steps:*
> * Install plugin A with dependency on plugin B
> This installs plugin A and plugin B
> * Install plugin B  --- because the user wants to use it
> Installation does nothing because plugin B is already installed
> * Uninstall plugin A
> This removes both plugin A and plugin B
> *Expected:*
> The plugin B remains installed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to