Fix computing source package name

The `packageName` (key in build preparation) might not actually be
`pkgbase` when rebuilding a binary package and `pkgbase` changes compared
to what it was in the before. Then `packageName` is still set to the old
`pkgbase` and we need to use the name from the actual source info (which is
the name `pkgbase` value).
This commit is contained in:
Martchus 2022-11-13 22:09:44 +01:00
parent 6e7e0c01e3
commit 962dd0088e
1 changed files with 1 additions and 1 deletions

View File

@ -1149,7 +1149,7 @@ void ConductBuild::addPackageToRepo(
auto readLock = lockToRead();
const auto &buildData = m_buildPreparation.buildData[packageName];
const auto &firstPackage = buildData.packages.front().pkg;
auto sourcePackageName = packageName % '-' % firstPackage->version + m_sourcePackageExtension;
auto sourcePackageName = buildData.sourceInfo->name % '-' % firstPackage->version + m_sourcePackageExtension;
// determine names of binary packages to be copied
binaryPackages.reserve(buildData.packages.size());