mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Robust: allow Library assets to override old ones, so they can be updated easily from the xml files keeping same id (left FSAssets out)
This commit is contained in:
@@ -82,7 +82,7 @@ namespace OpenSim.Services.AssetService
|
||||
if (existingAsset == null || Util.SHA1Hash(existingAsset.Data) != Util.SHA1Hash(a.Data))
|
||||
{
|
||||
// m_log.DebugFormat("[ASSET]: Storing {0} {1}", a.Name, a.ID);
|
||||
Store(a);
|
||||
m_Database.StoreAsset(a);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace OpenSim.Services.AssetService
|
||||
if (existingAsset == null || Util.SHA1Hash(existingAsset.Data) != Util.SHA1Hash(a.Data))
|
||||
{
|
||||
// m_log.DebugFormat("[ASSET]: Storing {0} {1}", a.Name, a.ID);
|
||||
Store(a);
|
||||
m_Database.StoreAsset(a);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user