| 70 | } |
| 71 | |
| 72 | static 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 | |
| 81 | Backend::Backend(QObject *parent) |
| 82 | : QObject(parent), m_nam(new QNetworkAccessManager(this)) |
no test coverage detected