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:
parent
6e7e0c01e3
commit
962dd0088e
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue