Subversion Repositories SvarDOS

Rev

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

Rev 1697 Rev 1801
Line 8... Line 8...
8
  files. buildidx will generate the index file and save it into the package
8
  files. buildidx will generate the index file and save it into the package
9
  repository.
9
  repository.
10
 
10
 
11
  requires php-zip
11
  requires php-zip
12
 
12
 
-
 
13
  10 mar 2024: support for "url" in LSM files
13
  01 feb 2024: computes the "latest" collection of symlinks
14
  01 feb 2024: computes the "latest" collection of symlinks
14
  24 nov 2023: SVED included in the MS-DOS compat list instead of EDIT + support for "release xyz" versions
15
  24 nov 2023: SVED included in the MS-DOS compat list instead of EDIT + support for "release xyz" versions
15
  25 aug 2023: validation of the hwreq section in LSM files
16
  25 aug 2023: validation of the hwreq section in LSM files
16
  24 aug 2023: load hwreq data from LSM and store them in the json index + skip the '.svn' dir
17
  24 aug 2023: load hwreq data from LSM and store them in the json index + skip the '.svn' dir
17
  30 jun 2023: adapted for new CORE packages location (../packages-core)
18
  30 jun 2023: adapted for new CORE packages location (../packages-core)
Line 39... Line 40...
39
  10 jul 2013: changed unzip calls to 7za (to handle cases when appinfo is compressed with lzma)
40
  10 jul 2013: changed unzip calls to 7za (to handle cases when appinfo is compressed with lzma)
40
  04 feb 2013: added CRC32 support
41
  04 feb 2013: added CRC32 support
41
  22 sep 2012: forked 1st version from FDUPDATE builder
42
  22 sep 2012: forked 1st version from FDUPDATE builder
42
*/
43
*/
43
 
44
 
44
$PVER = "20230825";
45
$PVER = "20240310";
45
 
46
 
46
 
47
 
47
// computes the BSD sum of a file and returns it
48
// computes the BSD sum of a file and returns it
48
function file2bsum($fname) {
49
function file2bsum($fname) {
49
  $result = 0;
50
  $result = 0;
Line 430... Line 431...
430
 
431
 
431
  $meta = array();
432
  $meta = array();
432
  $meta['fname'] = $fname;
433
  $meta['fname'] = $fname;
433
  $meta['desc'] = $lsmarray['description'];
434
  $meta['desc'] = $lsmarray['description'];
434
  $meta['cats'] = array_unique($catlist);
435
  $meta['cats'] = array_unique($catlist);
-
 
436
  $meta['url'] = $lsmarray['url'];
435
 
437
 
436
  if (!empty($lsmarray['hwreq'])) {
438
  if (!empty($lsmarray['hwreq'])) {
437
    $meta['hwreq'] = explode(' ', strtolower($lsmarray['hwreq']));
439
    $meta['hwreq'] = explode(' ', strtolower($lsmarray['hwreq']));
438
    sort($meta['hwreq']);
440
    sort($meta['hwreq']);
439
 
441