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:
parent
f417a2ed38
commit
07997b66a7
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user