OSDN Git Service

Refactored zipfile generation.
authorFelipe Leme <felipeal@google.com>
Tue, 22 Dec 2015 00:02:13 +0000 (16:02 -0800)
committerFelipe Leme <felipeal@google.com>
Tue, 5 Jan 2016 21:16:05 +0000 (21:16 +0000)
commit1e9edc619c6b1ca3998a26eaa4882b55ce801f12
treee734c8fe09ab6d25fb196c4c672eb1392a926e90
parentc41017f1c29f44c5690095bfb6fc07c605459005
Refactored zipfile generation.

Previously, the bugreport.zip was only created at after dumpstate
finished, at which point the temporary file was added to it.

With this refactoring, the bugreport.zip is created earlier on and the
temporary file is added at the end: although this change doesn't alter
the final result, it allows future changes to add more files to the .zip

BUG: 26293568
Change-Id: Ic0a111d009aac954c9746130df226a2dfeb679bc
cmds/dumpstate/dumpstate.cpp