diff --git a/src/kits/package/hpkg/PackageWriterImpl.cpp b/src/kits/package/hpkg/PackageWriterImpl.cpp index 4c689aa70d..6af51210c1 100644 --- a/src/kits/package/hpkg/PackageWriterImpl.cpp +++ b/src/kits/package/hpkg/PackageWriterImpl.cpp @@ -327,8 +327,6 @@ PackageWriterImpl::AddEntry(const char* fileName, int fd) return result; } } - - RegisterPackageInfo(PackageAttributes(), fPackageInfo); } return _RegisterEntry(fileName, fd); @@ -351,6 +349,8 @@ PackageWriterImpl::Finish() return B_BAD_DATA; } + RegisterPackageInfo(PackageAttributes(), fPackageInfo); + status_t result = _CheckLicenses(); if (result != B_OK) return result;