Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BA6E1011F for ; Thu, 4 Jul 2013 23:09:27 +0000 (UTC) Received: (qmail 45015 invoked by uid 500); 4 Jul 2013 23:09:27 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 44988 invoked by uid 500); 4 Jul 2013 23:09:27 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 44980 invoked by uid 99); 4 Jul 2013 23:09:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 23:09:27 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fil@adobe.com designates 64.18.1.187 as permitted sender) Received: from [64.18.1.187] (HELO exprod6og104.obsmtp.com) (64.18.1.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 23:09:17 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob104.postini.com ([64.18.5.12]) with SMTP ID DSNKUdYAh+vikKn1uSTfmmmM/6FKNfOXGtxe@postini.com; Thu, 04 Jul 2013 16:08:56 PDT Received: from inner-relay-2.corp.adobe.com ([153.32.1.52]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r64N5WD8006219 for ; Thu, 4 Jul 2013 16:05:32 -0700 (PDT) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r64N8tw7002813 for ; Thu, 4 Jul 2013 16:08:55 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nacas01.corp.adobe.com ([10.8.189.99]) with mapi; Thu, 4 Jul 2013 16:08:55 -0700 From: Filip Maj To: "dev@cordova.apache.org" Date: Thu, 4 Jul 2013 16:08:51 -0700 Subject: Re: Uninstallation of dependency-only plugins Thread-Topic: Uninstallation of dependency-only plugins Thread-Index: Ac55C3Tfp6+gY0s+T727W8jyeA5B9g== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.5.130515 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org File an issue over at issues.cordova.io, tag plugman, and we can go from there On 7/4/13 12:59 PM, "Ian Clelland" wrote: >This is the first time I've tried to use the CLI tools with the new 3.0 >project structure, and I've discovered that I can't uninstall a plugin >that >only has dependencies (no source files, either JS or native) > >Specifically, I've built a mobilespec app, installing >the mobile-spec-dependencies plugin, which does nothing but depend on >every >Cordova core plugin. I want to remove it, so that I can remove and >reinstall one of the dependencies, but the CLI tools will not remove it. > >Digging through cordova-cli, it looks like "cordova plugin rm" attempts to >invoke plugman.uninstall once per platform, but mobile-spec-dependencies >doesn't declare any platforms. > >plugman.uninstall seems to do two things, which I think should be >separated: It removes the plugin from a specific platform, and it removes >the plugin from the project itself. > >In the case of a dependency-only plugin, we only need to do the second >task >(which currently doesn't get done). For a regular plugin which is >installed >in multiple platforms, this also fails, since removing the plugin for the >first platform deletes the plugin source directory, and then removal for >subsequent platforms fails with the error message "[Error: Plugin id> not found. Already uninstalled?]" > >Can anyone explain the technical reasons behind this, or should I work on >separating those functions?