RpmOstreeTransaction.cpp | RpmOstreeTransaction.cpp | |||
---|---|---|---|---|
skipping to change at line 52 | skipping to change at line 52 | |||
// Make sure we are asking for a supported operation and set up argumen ts | // Make sure we are asking for a supported operation and set up argumen ts | |||
switch (m_operation) { | switch (m_operation) { | |||
case Operation::CheckForUpdate: { | case Operation::CheckForUpdate: { | |||
qInfo() << "rpm-ostree-backend: Starting transaction to check for u pdates"; | qInfo() << "rpm-ostree-backend: Starting transaction to check for u pdates"; | |||
if (m_resource->isClassic()) { | if (m_resource->isClassic()) { | |||
m_prog = QStringLiteral("rpm-ostree"); | m_prog = QStringLiteral("rpm-ostree"); | |||
m_args.append({QStringLiteral("update"), QStringLiteral("--chec k")}); | m_args.append({QStringLiteral("update"), QStringLiteral("--chec k")}); | |||
} else if (m_resource->isOCI()) { | } else if (m_resource->isOCI()) { | |||
m_prog = QStringLiteral("skopeo"); | m_prog = QStringLiteral("skopeo"); | |||
// This will fail on non-remote transports (oci, oci-archive, c | ||||
ontainers-storage) but | ||||
// that's OK as we can not check for updates in those cases. | ||||
m_args.append({QStringLiteral("inspect"), m_resource->OCIUrl()} ); | m_args.append({QStringLiteral("inspect"), m_resource->OCIUrl()} ); | |||
} else { | } else { | |||
// Should never happen | // Should never happen | |||
qWarning() << "rpm-ostree-backend: Error: Can not start a trans action for resource with an invalid format. Please file a bug."; | qWarning() << "rpm-ostree-backend: Error: Can not start a trans action for resource with an invalid format. Please file a bug."; | |||
passiveMessage("rpm-ostree-backend: Error: Can not start a tran saction for resource with an invalid format. Please file a bug."); | passiveMessage("rpm-ostree-backend: Error: Can not start a tran saction for resource with an invalid format. Please file a bug."); | |||
setStatus(Status::CancelledStatus); | setStatus(Status::CancelledStatus); | |||
return; | return; | |||
} | } | |||
break; | break; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |