mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 21:27:10 +09:00
M #-: Update app metadata if source changes
(cherry picked from commit 07997b66a7)
This commit is contained in:
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user