Relax condition for adding `--skippgpcheck`

The `signed` parameter might be used like this:
```
"$pkgname::git+https://github.com/ankitects/anki#tag=${_tag}?signed"
```
So we can't rely on `.git` preceding it.
This commit is contained in:
Martchus 2023-04-08 19:26:46 +02:00
parent cce83f1f9e
commit 55e19d9041
1 changed files with 1 additions and 1 deletions

View File

@ -929,7 +929,7 @@ InvocationResult ConductBuild::invokeMakepkgToMakeSourcePackage(const BatchProce
auto lock = lockToRead();
if (const auto &sourceInfo = m_buildPreparation.buildData[packageName].sourceInfo) {
for (const auto &source : sourceInfo->sources) {
if (source.path.find(".git?signed") != std::string::npos) {
if (source.path.find("git") != std::string::npos && source.path.find("?signed") != std::string::npos) {
// skip the GPG check at this point as makepkg won't actually clone the repository here
additionalFlags.emplace_back("--skippgpcheck");
break;