FreeEMS Issues - Loader
View Issue Details
0000228LoaderFile Loading/Savingpublic2011-07-19 16:392011-11-26 02:22
Fred 
sean94z 
normalminorhave not tried
assignedopen 
 
1.0.0 
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.

Notes
(0000692)
Fred   
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>/

EG:

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 .s19.zip 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 :-)
(0000693)
Fred   
2011-11-25 15:10   
BTW, you'll use packagenodoxy mostly, doxy is too slow. Forgot to mention that. Usual CLIFLAGS stuff applies.
(0000694)
Fred   
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.
(0000698)
Fred   
2011-11-25 16:13   
Fixed! All yours, go forth and unzip! :-)
(0000700)
Fred   
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.
(0000707)
sean94z   
2011-11-26 02:22   
sic