aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-10-22 19:34:06 +0100
committerJustin Clark-Casey (justincc)2010-10-22 19:34:06 +0100
commite6019dd6ac16ea3947e127be510bc3084b4bf103 (patch)
treeed9757c72d367dfab41b06bfc15154872c83d2bf /OpenSim/Region
parentImplement guard against trying to load incompatible version IARs (diff)
downloadopensim-SC_OLD-e6019dd6ac16ea3947e127be510bc3084b4bf103.zip
opensim-SC_OLD-e6019dd6ac16ea3947e127be510bc3084b4bf103.tar.gz
opensim-SC_OLD-e6019dd6ac16ea3947e127be510bc3084b4bf103.tar.bz2
opensim-SC_OLD-e6019dd6ac16ea3947e127be510bc3084b4bf103.tar.xz
print IAR version number on console when saving
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs
index f385a2a..249a8b4 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs
@@ -401,13 +401,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
401 /// <returns></returns> 401 /// <returns></returns>
402 public static string Create0p1ControlFile() 402 public static string Create0p1ControlFile()
403 { 403 {
404 int majorVersion = 0, minorVersion = 1;
405
406 m_log.InfoFormat("[INVENTORY ARCHIVER]: Creating version {0}.{1} IAR", majorVersion, minorVersion);
407
404 StringWriter sw = new StringWriter(); 408 StringWriter sw = new StringWriter();
405 XmlTextWriter xtw = new XmlTextWriter(sw); 409 XmlTextWriter xtw = new XmlTextWriter(sw);
406 xtw.Formatting = Formatting.Indented; 410 xtw.Formatting = Formatting.Indented;
407 xtw.WriteStartDocument(); 411 xtw.WriteStartDocument();
408 xtw.WriteStartElement("archive"); 412 xtw.WriteStartElement("archive");
409 xtw.WriteAttributeString("major_version", "0"); 413 xtw.WriteAttributeString("major_version", majorVersion.ToString());
410 xtw.WriteAttributeString("minor_version", "1"); 414 xtw.WriteAttributeString("minor_version", minorVersion.ToString());
411 xtw.WriteEndElement(); 415 xtw.WriteEndElement();
412 416
413 xtw.Flush(); 417 xtw.Flush();