Changeset 3677


Ignore:
Timestamp:
Nov 1, 2007, 2:19:12 PM (14 years ago)
Author:
livings124
Message:

Time Machine ignoring is going to have to wait until 1.00, since setting the project to use 10.5 libraries will just break other stuff

Location:
branches/0.9x
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/NEWS

    r3673 r3677  
    55   + Fix 0.90 data corruption bugs.
    66- OS X:
    7    + Leopard: Time Machine will ignore incomplete downloads
    87   + Leopard: Fix bug with typing values in Inspector->Options
    98   + Leopard: Fix bug with toggling Minimal View
  • branches/0.9x/macosx/Torrent.h

    r3675 r3677  
    6969   
    7070    NSDictionary * fQuickPauseDict;
    71    
    72     BOOL fNeedSetTimeMachine;
    7371}
    7472
  • branches/0.9x/macosx/Torrent.m

    r3675 r3677  
    218218    fStat = tr_torrentStat(fHandle);
    219219   
    220     #warning find a better way
    221     //check if the file is created for Time Machine
    222     if (fNeedSetTimeMachine)
    223     {
    224         NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    225         fNeedSetTimeMachine = CSBackupSetItemExcluded((CFURLRef)url, ![self allDownloaded], false) != noErr;
    226     }
    227    
    228220    //check to stop for ratio
    229221    float stopRatio;
     
    14591451   
    14601452    [self update];
    1461    
    1462     //mark incomplete files to be ignored by Time Machine
    1463     if ([NSApp isOnLeopardOrBetter])
    1464     {
    1465         NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    1466         fNeedSetTimeMachine = CSBackupSetItemExcluded((CFURLRef)url, ![self allDownloaded], false) != noErr;
    1467     }
    1468     else
    1469         fNeedSetTimeMachine = NO;
    14701453   
    14711454    return self;
     
    16031586            fDateCompleted = [[NSDate alloc] init];
    16041587           
    1605             //allow to be backed up by Time Machine
    1606             if ([NSApp isOnLeopardOrBetter])
    1607             {
    1608                 NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    1609                 CSBackupSetItemExcluded((CFURLRef)url, false, false);
    1610             }
    1611            
    16121588            fStat = tr_torrentStat(fHandle);
    16131589            [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self];
     
    16151591       
    16161592        case TR_CP_INCOMPLETE:
    1617             //do not allow to be backed up by Time Machine
    1618             if ([NSApp isOnLeopardOrBetter])
    1619             {
    1620                 NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    1621                 CSBackupSetItemExcluded((CFURLRef)url, true, false);
    1622             }
    1623            
    16241593            [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentRestartedDownloading" object: self];
    16251594            break;
Note: See TracChangeset for help on using the changeset viewer.