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

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

Commit c2830c114290f90cf475c14a7de98bac39d68b78 in branch refs/heads/master 
from [~kamrik]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=c2830c1 ]

CB-5493 lazy_load now downloads to a temp dir and then moves.

If "cordova create" is interrupted with Ctrl-C while downloading the cordova
library for www, a bad version is stored in ~/.cordova/lib/. That bad version
is then used for future runs of "cordova create" which results in projects with
www dir containing no files except a subfolder named like
cordova-app-hello-world-3.2.0-ee9a86g3


> Lazy loader returns bad content if interrupted during download on previous 
> invocation.
> --------------------------------------------------------------------------------------
>
>                 Key: CB-5493
>                 URL: https://issues.apache.org/jira/browse/CB-5493
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Mark Koudritsky
>
> If "cordova create" is interrupted with Ctrl-C while downloading the cordova 
> library for www, a bad version is stored in ~/.cordova/lib/. That bad version 
> is then used for future runs of "cordova create" which results in projects 
> with www dir containing no files except a subfolder named like 
> cordova-app-hello-world-3.2.0-ee9a863
> We probably need to change lazy loader, to only create (or move to) the final 
> dir as the last step before returning the path to the caller. So that if it's 
> interrupted in the middle, the relevant lib would not appear as if it's 
> already cached.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to