FGFSPM: Difference between revisions

Jump to navigation Jump to search
2,425 bytes removed ,  6 March 2015
m
no edit summary
m (Hooray moved page FlightGear Package Manager to FGFSPM over a redirect without leaving a redirect: outdated, and meanwhile deprecated due to SimGear's package manager)
mNo edit summary
Line 2: Line 2:


== Status (06/2014) ==
== Status (06/2014) ==
This article is purely kept for reference here, it should be considered deprecated, the feature itself is currently being worked on as part of [[Catalog metadata]].
This article is purely kept for reference here, it should be considered deprecated, the feature itself is currently being worked on as part of [[Catalog metadata]] and [[FlightGear Package Manager]].
 
{{cquote
  |<nowiki>Well, if we make a manual catalog.xml from the current fgdata/Aircraft (which I have parts of a script to do), and we treat the current aircraft zip URLs as canonical, that is possible with current code right now - since it can do the zip download + extraction to a directory of our choice. We could throw an (ugly) PUI UI around that, and then if someone with more talent than me wants to Canvas-GUI-ify it, that will be great.</nowiki><br/><nowiki>
</nowiki><br/><nowiki>
I will attempt to get a prototype version of this working tonight / tomorrow. I don’t promise to produce anything usable but as you say, anything would be an improvement.</nowiki>
  |{{cite web |url=http://sourceforge.net/p/flightgear/mailman/message/32397779/
    |title=<nowiki>Re: [Flightgear-devel] select/download aircraft</nowiki>
    |author=<nowiki>James Turner</nowiki>
    |date=<nowiki>2014-05-30</nowiki>
  }}
}}
 
{{cquote
  |<nowiki>Thomas Geymayer and I are working on it, I am not sure where’s he go to with the UI, the backend pieces are mostly there but will need some intensive testing. There is a #define flag you can toggle (in HTTPClient.cxx) to enable the code including the Nasal API; it will download / refresh a catalog, which is generated by the scripts I committed to fgmeta a week ago. Then you can access the package system from pkg.root in the Nasal console, using the API defined at the bottom of HTTPClient.cxx.</nowiki><br/><nowiki>
</nowiki><br/><nowiki>
If you are crazy enough to enable this code, and run it, be aware it downloads zips, unpacks them, makes calls to unlink files, renames directories, and so on. I would recommend some caution, and especially, don’t run it as root - while developing it I had it extract a few zips to ‘/‘ or worse due to screwed up path logic.</nowiki><br/><nowiki>
</nowiki><br/><nowiki>
Equally, I would welcome a code review of the code in simgear/package/Install.cxx to check any security issues or dangerous behaviour. The code /tries/ to be ‘safe’ - extract zip to a temporary folder, and uses rename/unlink to atomically update if the zip extraction succeeds. But it’s only had one pair of eyes on it so far. </nowiki>
  |{{cite web |url=http://sourceforge.net/p/flightgear/mailman/message/32440549/
    |title=<nowiki>Re: [Flightgear-devel] select/download aircraft</nowiki>
    |author=<nowiki>James Turner</nowiki>
    |date=<nowiki>2014-06-10</nowiki>
  }}
}}




Navigation menu