diff options
author | Justin Clarke Casey | 2008-06-04 18:50:58 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-04 18:50:58 +0000 |
commit | 1d745cca1753ee62a75633029adeb3abfb9b224a (patch) | |
tree | e18ed3ba3a4d02ae75b2b3a55205ebadd447b3f6 /OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs | |
parent | * adding XmppPresenceStanza and deserialization/reification support (diff) | |
download | opensim-SC_OLD-1d745cca1753ee62a75633029adeb3abfb9b224a.zip opensim-SC_OLD-1d745cca1753ee62a75633029adeb3abfb9b224a.tar.gz opensim-SC_OLD-1d745cca1753ee62a75633029adeb3abfb9b224a.tar.bz2 opensim-SC_OLD-1d745cca1753ee62a75633029adeb3abfb9b224a.tar.xz |
* Start writing out assets metadata file for archiver
* Ignoring it on reload as of yet
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs index 6c341c6..41f230c 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequest.cs | |||
@@ -123,23 +123,9 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
123 | TarArchiveWriter archive = new TarArchiveWriter(); | 123 | TarArchiveWriter archive = new TarArchiveWriter(); |
124 | 124 | ||
125 | archive.AddFile(ArchiveConstants.PRIMS_PATH, m_serializedEntities); | 125 | archive.AddFile(ArchiveConstants.PRIMS_PATH, m_serializedEntities); |
126 | 126 | ||
127 | // It appears that gtar, at least, doesn't need the intermediate directory entries in the tar | 127 | AssetsArchiver assetsArchiver = new AssetsArchiver(assets); |
128 | //archive.AddDir("assets"); | 128 | assetsArchiver.Archive(archive); |
129 | |||
130 | foreach (LLUUID uuid in assets.Keys) | ||
131 | { | ||
132 | if (assets[uuid] != null) | ||
133 | { | ||
134 | archive.AddFile( | ||
135 | ArchiveConstants.TEXTURES_PATH + uuid.ToString() + ArchiveConstants.TEXTURE_EXTENSION, | ||
136 | assets[uuid].Data); | ||
137 | } | ||
138 | else | ||
139 | { | ||
140 | m_log.DebugFormat("[ARCHIVER]: Could not find asset {0} to archive", uuid); | ||
141 | } | ||
142 | } | ||
143 | 129 | ||
144 | archive.WriteTar(m_savePath); | 130 | archive.WriteTar(m_savePath); |
145 | 131 | ||