def add_package_version(self, package_version: PackageVersion):
if (package_version.develop and not self.develop) or (not package_version.develop and self.develop):<EOL><INDENT>raise InternalError(f"<STR_LIT>")<EOL><DEDENT>if package_version.name in self.packages:<EOL><INDENT>raise InternalError(<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>self.packages[package_version.name] = package_version<EOL>
Add the given package version to package list.