mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #-: Update app metadata if source changes
(cherry picked from commit 07997b66a700b6185613133b14f630471d5b2677)
This commit is contained in:
parent
7b5b065364
commit
542fd01126
@ -209,7 +209,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user