RpmOstreeResource.cpp | RpmOstreeResource.cpp | |||
---|---|---|---|---|
skipping to change at line 480 | skipping to change at line 480 | |||
return m_ostreeFormat->isValid() && m_ostreeFormat->isClassic(); | return m_ostreeFormat->isValid() && m_ostreeFormat->isClassic(); | |||
} | } | |||
bool RpmOstreeResource::isOCI() | bool RpmOstreeResource::isOCI() | |||
{ | { | |||
return m_ostreeFormat->isValid() && m_ostreeFormat->isOCI(); | return m_ostreeFormat->isValid() && m_ostreeFormat->isOCI(); | |||
} | } | |||
QString RpmOstreeResource::OCIUrl() | QString RpmOstreeResource::OCIUrl() | |||
{ | { | |||
// This will fail on non-remote transports (oci, oci-archive, container | ||||
s-storage) but that's | ||||
// OK as we can not check for updates in those cases. | ||||
if (m_ostreeFormat->isValid() && m_ostreeFormat->isOCI()) { | if (m_ostreeFormat->isValid() && m_ostreeFormat->isOCI()) { | |||
return QLatin1String("docker://") + m_ostreeFormat->repo() + ':' + m_ostreeFormat->tag(); | return QLatin1String("docker://") + m_ostreeFormat->repo() + ':' + m_ostreeFormat->tag(); | |||
; | ; | |||
} | } | |||
// Should never happen | // Should never happen | |||
return {}; | return {}; | |||
} | } | |||
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/ |