HaikuDepot: fix package category assignment
* Processing of server data used wrong index into category list
This commit is contained in:
parent
125d42d95b
commit
26c5107c8d
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user