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:
parent
cce83f1f9e
commit
55e19d9041
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue