Changeset 34580 in vbox
- Timestamp:
- Dec 1, 2010 3:46:52 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68375
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp
r34579 r34580 1349 1349 1350 1350 /* 1351 * Only directories which conform with our mangling and temporary1352 * install/uninstallnaming scheme are candidates for cleaning.1351 * Only directories which conform with our temporary install/uninstall 1352 * naming scheme are candidates for cleaning. 1353 1353 */ 1354 1354 if ( RTFS_IS_DIRECTORY(Entry.Info.Attr.fMode) … … 1356 1356 && strcmp(Entry.szName, "..") != 0) 1357 1357 { 1358 bool fTemporary = false; 1359 bool fCandidate = VBoxExtPackIsValidMangledName(Entry.szName); 1360 if (!fCandidate) 1361 { 1362 char *pszMarker = strstr(Entry.szName, "-_-"); 1363 if ( pszMarker 1364 && ( !strcmp(pszMarker, "-_-uninst") 1365 || !strncmp(pszMarker, "-_-inst", sizeof("-_-inst") - 1))) 1366 { 1367 *pszMarker = '\0'; 1368 fCandidate = VBoxExtPackIsValidMangledName(Entry.szName); 1369 *pszMarker = '-'; 1370 fTemporary = true; 1371 } 1372 } 1358 bool fCandidate = false; 1359 char *pszMarker = strstr(Entry.szName, "-_-"); 1360 if ( pszMarker 1361 && ( !strcmp(pszMarker, "-_-uninst") 1362 || !strncmp(pszMarker, "-_-inst", sizeof("-_-inst") - 1))) 1363 fCandidate = VBoxExtPackIsValidMangledName(Entry.szName, pszMarker - &Entry.szName[0]); 1373 1364 if (fCandidate) 1374 1365 { … … 1380 1371 if (RT_SUCCESS(rc)) 1381 1372 { 1382 RTEXITCODE rcExit2 = RemoveExtPackDir(szPath, fTemporary);1373 RTEXITCODE rcExit2 = RemoveExtPackDir(szPath, true /*fTemporary*/); 1383 1374 if (rcExit2 == RTEXITCODE_SUCCESS) 1384 1375 RTMsgInfo("Successfully removed '%s'.", Entry.szName);
Note:
See TracChangeset
for help on using the changeset viewer.