Subversion Repositories SvarDOS

Rev

Rev 1522 | Rev 1607 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1522 Rev 1524
Line 427... Line 427...
427
  $meta['desc'] = $lsmarray['description'];
427
  $meta['desc'] = $lsmarray['description'];
428
  $meta['cats'] = array_unique($catlist);
428
  $meta['cats'] = array_unique($catlist);
429
 
429
 
430
  if (!empty($lsmarray['hwreq'])) {
430
  if (!empty($lsmarray['hwreq'])) {
431
    $meta['hwreq'] = explode(' ', strtolower($lsmarray['hwreq']));
431
    $meta['hwreq'] = explode(' ', strtolower($lsmarray['hwreq']));
-
 
432
    sort($meta['hwreq']);
432
 
433
 
433
    // validate list of valid hwreq tokens
434
    // validate list of valid hwreq tokens
434
    $validtokens = array('8086', '186', '286', '386', '486', '586', 'fpu', 'mda', 'cga', 'ega', 'vga', 'mcga', 'svga');
435
    $validtokens = array('8086', '186', '286', '386', '486', '586', 'fpu', 'mda', 'cga', 'ega', 'vga', 'mcga', 'svga');
435
    foreach (array_diff($meta['hwreq'], $validtokens) as $tok) echo "WARNING: {$fname} contains an LSM hwreq section with invalid token: {$tok}\n";
436
    foreach (array_diff($meta['hwreq'], $validtokens) as $tok) echo "WARNING: {$fname} contains an LSM hwreq section with invalid token: {$tok}\n";
436
  }
437
  }