FreeEMS Issues - Loader
View Issue Details
0000228LoaderFile Loading/Savingpublic2011-07-19 16:392011-11-26 02:22
normalminorhave not tried
0000228: Accept Zip Files As Input Files
Allow users to choose zip files and decompress looking for an S19 inside.

If more than one, let them choose from the newly created directory.

If one, load as usual, looking for md5 in both the unzip path, and the path the zip itself was in.
No tags attached.

2011-11-25 15:05   
BUMP: I now need this as I use the command "make package" to get a history of S19 files while I'm developing and that zips them and checksums them. Try it, they end up in <repo>/tmp/<label>/


fred@cheetah:~/freeems-vanilla/tmp$ l
total 8
drwxr-xr-x 2 fred fred 4096 Nov 25 15:55 FreeEMS-0.2.0-SNAPSHOT-22-g050b40b-FUCKED
drwxr-xr-x 3 fred fred 4096 Nov 25 15:54 FreeEMS-0.2.0-SNAPSHOT-33-g0966d59-LATEST

I just went to open the s19 files inside these directories and was confused because there weren't any! :-) Just pull in a lib that does std zip and list and .s19 names, handling each appropriately.

The md5 and sha1 files are .s19.md5 and .s19.sha1 so you can use those at this point too, though the zip feature is more important to me now :-)
2011-11-25 15:10   
BTW, you'll use packagenodoxy mostly, doxy is too slow. Forgot to mention that. Usual CLIFLAGS stuff applies.
2011-11-25 15:31   
Slight problem with the implementation, the zip contains a directory by accident :-) Will fix soon and reply here when done, ignore till then.
2011-11-25 16:13   
Fixed! All yours, go forth and unzip! :-)
2011-11-25 16:14   
BTW, the assumption should be that the zip file will produce a file of the same name without the .zip extension. If not, error.
2011-11-26 02:22