1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Update app metadata if source changes

This commit is contained in:
Ruben S. Montero 2020-10-09 14:02:21 +02:00
parent f417a2ed38
commit 07997b66a7
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -211,7 +211,7 @@ int MarketPlaceAppPool::import(const std::string& t64, int mp_id,
app->market_id = mp_id;
app->market_name = mp_name;
app->zone_id = Nebula::instance().get_zone_id();
app->zone_id = Nebula::instance().get_zone_id();
if ( !PoolObjectSQL::name_is_valid(app->name, error_str) )
{
@ -234,7 +234,8 @@ int MarketPlaceAppPool::import(const std::string& t64, int mp_id,
{
app_id = mp_aux->oid;
if ( mp_aux->version != app->version || mp_aux->md5 != app->md5 )
if ( mp_aux->version != app->version || mp_aux->md5 != app->md5 ||
mp_aux->source != app->source )
{
mp_aux->from_template64(t64, error_str);
update(mp_aux.get());