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 DE4A610A2A for ; Wed, 11 Sep 2013 16:59:25 +0000 (UTC) Received: (qmail 87855 invoked by uid 500); 11 Sep 2013 16:59:24 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 87729 invoked by uid 500); 11 Sep 2013 16:59:23 -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 87011 invoked by uid 99); 11 Sep 2013 16:59:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 16:59:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 16:59:18 +0000 Received: by mail-pb0-f48.google.com with SMTP id ma3so9259245pbc.21 for ; Wed, 11 Sep 2013 09:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=YP9F22hCLs1Th/yyp+SQW2TQARCUVvyayrOAqATJiXc=; b=Aphsw6WzqZMLRGKZ9W9ztnOh9rQu/bSR73Hkt2qlw5hlmLRx2e3wSYxtcyIiHb74Vh yXoLks9kKkLGKjOlh+P/+kkUOGpUcA+BBfXzjn6nb5Q1tFWALfh6LgrjeAmABthONXxp QOpXc0ttbJeyWTnzGPRdV1+Rhgp0pkskBx/CwAbsQMJem1ta9Wni6GpesDuvGHZZ+TXS QYOkMJ4yCvuLRrg475Di1wWBfkc+3MJOczA+84vNgAb5VcC6uiOJ9j6s7SuJg+Ex8R66 6lzAv8kSOeKRWPRQWzcV0JP0BB7RxFqVBqFL20baUVGyrpBYqJOJWDNUMQRgny37Ya8n jymA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=YP9F22hCLs1Th/yyp+SQW2TQARCUVvyayrOAqATJiXc=; b=cRxGh2ihqR0Krzqwo5iW4JSApdPncKO2/6hXASaquGIHQtUKr1QIo15rGxiMyElIAO RAxPfCsF4NVUPeaKgJhmSmM4VIygwLd74lluVPCf1SUA3f/jYaHYeFZCO+svOZHfNkej Ytq4sfh92cirbslCaHZlgyDyK22xmNMFekj0I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=YP9F22hCLs1Th/yyp+SQW2TQARCUVvyayrOAqATJiXc=; b=ChQSPCCQF542fcmSoYzDkLWDfldaLiyrKhD/yNcrrvCvw5j4eKbwQpR8quYSgFSb8Z FKRwRVN46ikPKVoW6K6lKReONXCVEWo5X4CVUq4a6MjAZig1POnK18vSgbzLYutciaBo VAWHYc0/MZmTvUO8KsNsL7PAr7SjjgbkTordxeTbl3NVWAvW2Ywk7F/v8KB/ihmpDQo+ Xn30c0x1mrws5PFyglaItjzqJRbmQocPgFuCGMO+V3ba5LnzFbMTHg1PvVmIoxuDMi2l MktMsKQblo5LufVFTlpXlu4V7gv1YHERy53fngD3yO2gPft/Tl94MAZd/+bC5Rb13B3C oeIA== X-Gm-Message-State: ALoCoQlF7HnLXkdGv3vg7PamoTxUO7jvirfv9gg7MDBPZGH4AQvVSGTXn/Id2U+vytCp+KYBoeNNz8GAGMsT7f2vaufzuQge3jKkYVEQEe9aceOUsh7Aqcf/TYnuTX0iM0WekoHwVDG3xHSGQP4fmY0tepMjhSPVCoew0W0jRrbDwqJb4E3vVnEudObcsQpAuvDaExqoyKmJrkPQve8U0PK/Cs9rpqNvgw== X-Received: by 10.68.96.130 with SMTP id ds2mr2855216pbb.99.1378918737882; Wed, 11 Sep 2013 09:58:57 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.68.17.98 with HTTP; Wed, 11 Sep 2013 09:58:36 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Wed, 11 Sep 2013 12:58:36 -0400 X-Google-Sender-Auth: 0AR1t8i6wlRGxAf253inzGoYLAU Message-ID: Subject: Re: Cordova Upgrades To: dev Content-Type: multipart/alternative; boundary=047d7b67643a8bd1e204e61e8980 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b67643a8bd1e204e61e8980 Content-Type: text/plain; charset=ISO-8859-1 I like upgrade better as well, but npm uses "update", so figured that was a reason to use update. On Wed, Sep 11, 2013 at 12:36 PM, Michal Mocny wrote: > Nit: could we call it 'upgrade' not 'update' ? > > I realize that you are matching the name of the bin/ script, but I don't > think that anyone was using that, and 'update' usually only fetches > metadata while 'upgrade' does what you describe in other package management > type tools. > > > On Tue, Sep 10, 2013 at 1:46 PM, Anis KADRI wrote: > > > YES! I've been wanting something like this since 2.4 :-) > > > > On Tue, Sep 10, 2013 at 12:37 PM, Andrew Grieve > > wrote: > > > Made tasks for this on JIRA: > > https://issues.apache.org/jira/browse/CB-4776 > > > > > > Feel free to continue discussing here. > > > > > > > > > On Tue, Sep 10, 2013 at 1:48 PM, Michael Brooks < > > michael@michaelbrooks.ca>wrote: > > > > > >> Effectively, this could also be used to downgrade a project because > it's > > >> updating the project to match the globally installed Cordova version. > > >> > > >> Looks good though! It's important to keep the upgrade responsibility > > within > > >> the platform scripts. > > >> > > >> Michael > > >> > > >> > > >> On Tue, Sep 10, 2013 at 8:30 AM, Andrew Grieve > > >> wrote: > > >> > > >> > Our upgrade process from 2.9 -> 3.0 was to recreate a project and > copy > > >> your > > >> > files over. It would be sad if these were our instructions for 3.0 > -> > > >> 3.1. > > >> > > > >> > What I'd like to see: > > >> > > > >> > $ cd MyProject > > >> > $ cordova --version > > >> > 3.0.9 > > >> > $ npm update -g cordova > > >> > $ cordova --version > > >> > 3.1.0-1.0.0 > > >> > $ cordova platform ls > > >> > Installed platforms: > > >> > android 3.0.0 > > >> > ios 3.0.0 > > >> > Available platforms: > > >> > android 3.1.0 > > >> > ios 3.1.0 > > >> > blackberry10 3.1.0 > > >> > $ cordova platform add android > > >> > Platform android already exists. Use `update` to update it. > > >> > $ cordova platform update android > > >> > Updated android from 3.0.0 to 3.1.0 > > >> > $ cordova platform ls > > >> > Installed platforms: > > >> > android 3.1.0 > > >> > ios 3.0.0 > > >> > Available platforms: > > >> > ios 3.1.0 > > >> > blackberry10 3.1.0 > > >> > > > >> > > > >> > How does `cordova update` work? > > >> > - It uses platforms/*/cordova/version script to discover current > > version > > >> > - It fetches the new version into $HOME/.cordova/libs > > >> > - It runs new_version/bin/update path/to/platforms/$PLATFORM for the > > >> > specified platform > > >> > > > >> > The platform script is responsible for: > > >> > #1 - doing all easily automated steps (update Cordova.jar, update > > scripts > > >> > within cordova/) > > >> > #2 - Printing out a message saying what manual steps should be taken > > to > > >> > complete the upgrade (e.g. Please add this snippet to your > > >> > ApplicationDelegate) > > >> > > > >> > > > >> > Sound good? Any other ideas? > > >> > > > >> > > > --047d7b67643a8bd1e204e61e8980--