Fix extension pruning

Target correct URL when checking for symbolic link
Modify logging to use boolean value
This commit is contained in:
Michael
2024-07-05 10:52:19 -04:00
parent 8004a33e9d
commit e5f8ea679e
@@ -583,7 +583,7 @@ typedef NS_ENUM(NSUInteger, TPCResourceManagerMigrationInstallation)
{
#ifdef DEBUG
LogToConsoleDebug("Ignoring non-bundle: '%@' - isPackage: %@", name,
StringFromBOOL(isPackage));
StringFromBOOL(isPackage.boolValue));
#endif
continue;
@@ -597,7 +597,7 @@ typedef NS_ENUM(NSUInteger, TPCResourceManagerMigrationInstallation)
created is near zero if not zero. This is already over engineered. */
BOOL pruned = NO;
if ([self _fileAtURLIsSymbolicLink:newLocation] == NO) {
if ([self _fileAtURLIsSymbolicLink:newExtension] == NO) {
NSError *deleteError = nil;
pruned = [RZFileManager() removeItemAtURL:oldExtension error:&deleteError];