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

ASF subversion and git services commented on CB-4992:
-----------------------------------------------------

Commit 0596e47f870a13d8658ebb27f01f70fffcec5e23 in branch refs/heads/master 
from [~shepheb]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;h=0596e47 ]

Overhaul dependency uninstallation

This fixes several long-standing bugs with plugman deleting
dependencies. The new rules are to uninstall all of the target plugin's
dependencies, provided they are:
- Not installed at the top level.
- Not depended on by any other plugins.

Similarly, plugin directories are only deleted when no plugin depends on
them, and they are not top-level, on any platform.

Fixes CB-5056, CB-5060, CB-4992, and CB-4189.


> CLI prematurely removes plugin dependency when two plugins share a dependency
> -----------------------------------------------------------------------------
>
>                 Key: CB-4992
>                 URL: https://issues.apache.org/jira/browse/CB-4992
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Andrew Grieve
>             Fix For: 3.2.0
>
>
> {code}
> cordova create foo com.google.foo foo
> cd foo
> cordova platform add android
> cordova plugin add org.apache.cordova.media-capture
> cordova plugin add org.apache.cordova.file-transfer
> cordova plugin rm org.apache.cordova.media-capture
> {code}
> now:
> {code}
> $ cordova plugin ls
> [ 'org.apache.cordova.file-transfer' ]
> {code}
> and:
>  
> {code}
> cordova plugin rm org.apache.cordova.file-transfer
> { [Error: ENOENT, no such file or directory 
> '/Users/agrieve/git/cordova/cordova-app-harness/foo/plugins/org.apache.cordova.file/plugin.xml']
>   errno: 34,
>   code: 'ENOENT',
>   path: 
> '/Users/agrieve/git/cordova/cordova-app-harness/foo/plugins/org.apache.cordova.file/plugin.xml',
>   syscall: 'open' }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to