diff --git a/src/apps/packageinstaller/UninstallView.cpp b/src/apps/packageinstaller/UninstallView.cpp index d187a96008..ba6fba49e1 100644 --- a/src/apps/packageinstaller/UninstallView.cpp +++ b/src/apps/packageinstaller/UninstallView.cpp @@ -351,8 +351,6 @@ UninstallView::_ReloadAppList() if (ret != B_OK) return ret; - fprintf(stderr, "Ichi! %s\n", fToPackages.Path()); - BEntry iter; while (dir.GetNextEntry(&iter) == B_OK) { char filename[B_FILE_NAME_LENGTH]; @@ -363,6 +361,12 @@ UninstallView::_ReloadAppList() if (iter.GetNodeRef(&ref) != B_OK) continue; + if (strncmp(filename + (strnlen(filename, B_FILE_NAME_LENGTH) - 3), + "pdb", 3) != 0) { + printf("Ignoring non-package '%s'\n", filename); + continue; + } + printf("Found package '%s'\n", filename); _AddFile(filename, ref); }