function _installFile($file, $atts, $tmp_path)
{
+ static $os;
+ if (isset($atts['platform'])) {
+ if (empty($os)) {
+ include_once "OS/Guess.php";
+ $os = new OS_Guess();
+ }
+ // return if this file is meant for another platform
+ if (!$os->matchSignature($atts['platform'])) {
+ $this->log(1, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")");
+ return;
+ }
+ }
+
switch ($atts['role']) {
case 'test': case 'data': case 'ext':
// don't install test files for now