MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / flatpakRepoDescriptorHasGpgKey

Function flatpakRepoDescriptorHasGpgKey

ui-linux/src/backend.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static bool flatpakRepoDescriptorHasGpgKey()
73{
74 QFile f(flatpakRepoDescriptorPath());
75 if (!f.open(QIODevice::ReadOnly | QIODevice::Text))
76 return false;
77 QString repo = f.readAll();
78 return repo.contains(QRegularExpression("^GPGKey=\\S", QRegularExpression::MultilineOption));
79}
80
81Backend::Backend(QObject *parent)
82 : QObject(parent), m_nam(new QNetworkAccessManager(this))

Callers 2

enableAutoUpdatesMethod · 0.85

Calls 1

Tested by

no test coverage detected