Changeset 51

Show
Ignore:
Timestamp:
08/18/06 16:25:27 (2 years ago)
Author:
cordney
Message:

[fix] downloader: crashes on starting download

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/changelog.txt

    r50 r51  
     1Q-0.8.1d51 
     2[fix] downloader: crashes on starting download 
     3 
    14Q-0.8.1d50 
    25[new] downloader: new download list according to new oszoo pages, moved list to new server  
    36[fix] Makefile: use -lcrypto instead of full path to libcrypto  
    47[new] credits: licenses  
    5 [new] downloader: if there is a README file with the downloaded Guest PC, open it in TextEdit? after download is finished  
     8[new] downloader: if there is a README file with the downloaded Guest PC, open it in TextEdit after download is finished  
    69[fix] downloader: leave all files from the downloaded archive in qvm package  
    710[fix] downloader: finding a folder with .img or .qcow in it's name sets it not as harddisk anymore  
  • trunk/qcontrol/cocoaDownload.m

    r49 r51  
    266266    tInfo = tr_torrentInfo( tHandle ); 
    267267     
    268     NSLog(@"rcvCL: %f", receivedContentLength); 
     268    //NSLog(@"rcvCL: %f", receivedContentLength); 
    269269    receivedContentLength = tInfo[0].totalSize * tStat[0].progress; 
    270270    expectedContentLength = tInfo[0].totalSize; 
  • trunk/qcontrol/cocoaDownloadController.m

    r49 r51  
    129129        } else { 
    130130            // download list is nil, spawn error message 
    131             NSLog(@"Could not load list."); 
     131            //NSLog(@"Could not load list."); 
    132132            NSBeginAlertSheet(@"Cannot show Guest PCs from free.oszoo.org.",@"OK",nil,nil,[controller mainWindow],self,nil,nil,nil,@"Couldn't get the list of downloadable Guest PCs from kju-app.org."); 
    133133        } 
     
    175175- (IBAction) showDownloadsByType:(id)sender 
    176176{ 
    177     NSLog(@"showDownloadsByType:"); 
     177    //NSLog(@"showDownloadsByType:"); 
    178178    // method for the popupbutton to select os type 
    179179    NSMutableArray * array = [NSMutableArray arrayWithCapacity:1]; 
     
    392392        // 1. init download object, set values 
    393393        // TODO: distinguish between HTTP&BT, url pathExtension? 
    394         if([thisDownload valueForKey:@"torrent"] == [NSNumber numberWithInt:1]) { 
     394        if([thisDownload valueForKey:@"Torrent"] == [NSNumber numberWithInt:1]) { 
    395395            download = [[[cocoaDownload alloc] initWithBT] retain]; 
    396396        } else { 
    397397            download = [[[cocoaDownload alloc] initWithHTTP] retain]; 
    398398        } 
    399         if([[thisDownload objectForKey:@"version"] isEqualToString:@""]) { 
     399        if([[thisDownload objectForKey:@"Version"] isEqualToString:@""]) { 
    400400            [download setName:[thisDownload objectForKey:@"Name"]]; 
    401401        } else { 
     
    548548- (void) downloadDidFail:(NSNotification *)aNotification 
    549549{ 
    550     NSLog(@"Download did fail: %@", [[aNotification userInfo] objectForKey:@"ERROR_DESCRIPTION"]); 
     550    //NSLog(@"Download did fail: %@", [[aNotification userInfo] objectForKey:@"ERROR_DESCRIPTION"]); 
    551551     
    552552    // delete qvm 
    553     NSLog(@"savepath: %@", [download getSavePath]); 
     553    //NSLog(@"savepath: %@", [download getSavePath]); 
    554554    if(![[[download getSavePath] stringByDeletingLastPathComponent] isEqualTo:@""] || [[download getSavePath] stringByDeletingLastPathComponent] != nil) { 
    555555        NSFileManager * manager = [NSFileManager defaultManager]; 
     
    569569- (void) cleanupDownload:(NSString *)path 
    570570{ 
    571     NSLog(@"Cleaning up after download.."); 
     571    //NSLog(@"Cleaning up after download.."); 
    572572    if(statusTimer) { 
    573573        [statusTimer invalidate];