Move RegisterPackageInfo() to Finish()
This commit is contained in:
parent
c83c5423aa
commit
abbeb15ac4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user