aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-10-22 19:34:06 +0100
committerJonathan Freedman2010-10-22 18:33:52 -0400
commita7a8fdc7dafb01f9c7689cdc95add52446a16d89 (patch)
tree1d35611b6eadb69ffdd11b1f4f70c6bebe27bcc6
parentImplement guard against trying to load incompatible version IARs (diff)
downloadopensim-SC_OLD-a7a8fdc7dafb01f9c7689cdc95add52446a16d89.zip
opensim-SC_OLD-a7a8fdc7dafb01f9c7689cdc95add52446a16d89.tar.gz
opensim-SC_OLD-a7a8fdc7dafb01f9c7689cdc95add52446a16d89.tar.bz2
opensim-SC_OLD-a7a8fdc7dafb01f9c7689cdc95add52446a16d89.tar.xz
print IAR version number on console when saving
-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();