HaikuDepot: fix package category assignment

* Processing of server data used wrong index into category list
This commit is contained in:
Julian Harnath 2017-11-24 09:22:28 +01:00
parent 125d42d95b
commit 26c5107c8d

View File

@ -148,7 +148,8 @@ PackageFillingPkgListener::Handle(DumpExportPkg* pkg)
printf("unable to find the category for [%s]\n",
categoryCode->String());
} else {
packageInfo->AddCategory(fCategories.ItemAtFast(i));
packageInfo->AddCategory(
fCategories.ItemAtFast(categoryIndex));
}
}
@ -285,4 +286,4 @@ const char*
PkgDataUpdateProcess::LoggingName() const
{
return "pkg-data-update";
}
}