| |
Changeset 51
- 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
| r50 |
r51 |
|
| | 1 | Q-0.8.1d51 |
|---|
| | 2 | [fix] downloader: crashes on starting download |
|---|
| | 3 | |
|---|
| 1 | 4 | Q-0.8.1d50 |
|---|
| 2 | 5 | [new] downloader: new download list according to new oszoo pages, moved list to new server |
|---|
| 3 | 6 | [fix] Makefile: use -lcrypto instead of full path to libcrypto |
|---|
| 4 | 7 | [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 |
|---|
| 6 | 9 | [fix] downloader: leave all files from the downloaded archive in qvm package |
|---|
| 7 | 10 | [fix] downloader: finding a folder with .img or .qcow in it's name sets it not as harddisk anymore |
|---|
| r49 |
r51 |
|
| 266 | 266 | tInfo = tr_torrentInfo( tHandle ); |
|---|
| 267 | 267 | |
|---|
| 268 | | NSLog(@"rcvCL: %f", receivedContentLength); |
|---|
| | 268 | //NSLog(@"rcvCL: %f", receivedContentLength); |
|---|
| 269 | 269 | receivedContentLength = tInfo[0].totalSize * tStat[0].progress; |
|---|
| 270 | 270 | expectedContentLength = tInfo[0].totalSize; |
|---|
| r49 |
r51 |
|
| 129 | 129 | } else { |
|---|
| 130 | 130 | // download list is nil, spawn error message |
|---|
| 131 | | NSLog(@"Could not load list."); |
|---|
| | 131 | //NSLog(@"Could not load list."); |
|---|
| 132 | 132 | 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."); |
|---|
| 133 | 133 | } |
|---|
| … | … | |
| 175 | 175 | - (IBAction) showDownloadsByType:(id)sender |
|---|
| 176 | 176 | { |
|---|
| 177 | | NSLog(@"showDownloadsByType:"); |
|---|
| | 177 | //NSLog(@"showDownloadsByType:"); |
|---|
| 178 | 178 | // method for the popupbutton to select os type |
|---|
| 179 | 179 | NSMutableArray * array = [NSMutableArray arrayWithCapacity:1]; |
|---|
| … | … | |
| 392 | 392 | // 1. init download object, set values |
|---|
| 393 | 393 | // TODO: distinguish between HTTP&BT, url pathExtension? |
|---|
| 394 | | if([thisDownload valueForKey:@"torrent"] == [NSNumber numberWithInt:1]) { |
|---|
| | 394 | if([thisDownload valueForKey:@"Torrent"] == [NSNumber numberWithInt:1]) { |
|---|
| 395 | 395 | download = [[[cocoaDownload alloc] initWithBT] retain]; |
|---|
| 396 | 396 | } else { |
|---|
| 397 | 397 | download = [[[cocoaDownload alloc] initWithHTTP] retain]; |
|---|
| 398 | 398 | } |
|---|
| 399 | | if([[thisDownload objectForKey:@"version"] isEqualToString:@""]) { |
|---|
| | 399 | if([[thisDownload objectForKey:@"Version"] isEqualToString:@""]) { |
|---|
| 400 | 400 | [download setName:[thisDownload objectForKey:@"Name"]]; |
|---|
| 401 | 401 | } else { |
|---|
| … | … | |
| 548 | 548 | - (void) downloadDidFail:(NSNotification *)aNotification |
|---|
| 549 | 549 | { |
|---|
| 550 | | NSLog(@"Download did fail: %@", [[aNotification userInfo] objectForKey:@"ERROR_DESCRIPTION"]); |
|---|
| | 550 | //NSLog(@"Download did fail: %@", [[aNotification userInfo] objectForKey:@"ERROR_DESCRIPTION"]); |
|---|
| 551 | 551 | |
|---|
| 552 | 552 | // delete qvm |
|---|
| 553 | | NSLog(@"savepath: %@", [download getSavePath]); |
|---|
| | 553 | //NSLog(@"savepath: %@", [download getSavePath]); |
|---|
| 554 | 554 | if(![[[download getSavePath] stringByDeletingLastPathComponent] isEqualTo:@""] || [[download getSavePath] stringByDeletingLastPathComponent] != nil) { |
|---|
| 555 | 555 | NSFileManager * manager = [NSFileManager defaultManager]; |
|---|
| … | … | |
| 569 | 569 | - (void) cleanupDownload:(NSString *)path |
|---|
| 570 | 570 | { |
|---|
| 571 | | NSLog(@"Cleaning up after download.."); |
|---|
| | 571 | //NSLog(@"Cleaning up after download.."); |
|---|
| 572 | 572 | if(statusTimer) { |
|---|
| 573 | 573 | [statusTimer invalidate]; |
|---|
Download in other formats:
| |