Fix keeping of package info during repository update.

* actually write the package info read from the repository, not the one
  from the package, as the latter is missing the checksum
This commit is contained in:
Oliver Tappe
2013-09-18 21:16:13 +02:00
parent 0a345af77e
commit b3a05eede6
+2 -1
View File
@@ -324,7 +324,8 @@ command_update(int argc, const char* const* argv)
PackageInfos::iterator infoIter = packageInfos.find(packageInfo);
if (infoIter != packageInfos.end()) {
infoIter->second = true;
if ((result = repositoryWriter.AddPackageInfo(packageInfo)) != B_OK)
if ((result = repositoryWriter.AddPackageInfo(infoIter->first))
!= B_OK)
return 1;
if (verbose) {
printf("keeping '%s-%s'\n", infoIter->first.Name().String(),