Ticket #5231: partition_patch.diff
File partition_patch.diff, 1.7 KB (added by , 14 years ago) |
---|
-
InstalledPackageInfo.cpp
213 213 // Try to remove all entries that are present in the list 214 214 for (i = 0; i < count; i++) { 215 215 iter = static_cast<BString *>(fInstalledItems.ItemAt(count - i - 1)); 216 fprintf(stderr, "Removing: %s (%ld/%ld)\n", iter->String(), i, count);217 216 ret = entry.SetTo(iter->String()); 218 217 if (ret == B_BUSY) { 219 218 // The entry's directory is locked - wait a few cycles for it to … … 235 234 return fStatus; 236 235 } 237 236 238 fprintf(stderr, "...we continue\n");239 240 237 if (entry.Exists() && entry.Remove() != B_OK) { 241 fprintf(stderr, "\n%s\n", strerror(ret));242 238 fStatus = B_ERROR; 243 239 return fStatus; 244 240 } -
PackageView.cpp
603 603 } 604 604 else if (prof->path_type == P_USER_PATH) { 605 605 BString name; 606 bool defaultPathSet = false; 606 607 char sizeString[32], volumeName[B_FILE_NAME_LENGTH]; 607 608 BVolumeRoster roster; 608 609 BDirectory mountPoint; 609 610 610 611 while (roster.GetNextVolume(&volume) != B_BAD_VALUE) { 611 612 if (volume.IsReadOnly() || 613 !volume.IsPersistent() || 612 614 volume.GetRootDirectory(&mountPoint) != B_OK) 613 615 continue; 614 616 … … 625 627 item = new BMenuItem(name.String(), temp); 626 628 item->SetTarget(this); 627 629 fDestination->AddItem(item); 630 631 // The first volume becomes the default element 632 if (!defaultPathSet) { 633 item->SetMarked(true); 634 fCurrentPath.SetTo(path.Path()); 635 defaultPathSet = true; 636 } 628 637 } 629 638 630 639 fDestField->SetEnabled(true);