M #-: Update app metadata if source changes

(cherry picked from commit 07997b66a7)
This commit is contained in:
Ruben S. Montero committed 2020-10-09 14:03:30 +02:00
1 parent 7b5b065364
commit 542fd01126
1 file changed
+3 -2
+3 -2
View File
@@ -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);