Move RegisterPackageInfo() to Finish()

This commit is contained in:
Ingo Weinhold 2011-07-03 04:13:12 +02:00
parent c83c5423aa
commit abbeb15ac4

View File

@ -327,8 +327,6 @@ PackageWriterImpl::AddEntry(const char* fileName, int fd)
return result; return result;
} }
} }
RegisterPackageInfo(PackageAttributes(), fPackageInfo);
} }
return _RegisterEntry(fileName, fd); return _RegisterEntry(fileName, fd);
@ -351,6 +349,8 @@ PackageWriterImpl::Finish()
return B_BAD_DATA; return B_BAD_DATA;
} }
RegisterPackageInfo(PackageAttributes(), fPackageInfo);
status_t result = _CheckLicenses(); status_t result = _CheckLicenses();
if (result != B_OK) if (result != B_OK)
return result; return result;