Subversion Repositories SvarDOS

Rev

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

Rev 801 Rev 802
Line 160... Line 160...
160
  $pkgnam = explode('-', $path_parts['filename'])[0];
160
  $pkgnam = explode('-', $path_parts['filename'])[0];
161
  $pkgfullpath = realpath($repodir . '/' . $fname);
161
  $pkgfullpath = realpath($repodir . '/' . $fname);
162
 
162
 
163
  $lsm = read_file_from_zip($pkgfullpath, "appinfo/{$pkgnam}.lsm");
163
  $lsm = read_file_from_zip($pkgfullpath, "appinfo/{$pkgnam}.lsm");
164
  if ($lsm == false) {
164
  if ($lsm == false) {
165
    echo "ERROR: pkg {$fname} does not contain an LSM file at the expected location\n";
165
    echo "ERROR: {$fname} does not contain an LSM file at the expected location\n";
166
    continue;
166
    continue;
167
  }
167
  }
168
  $lsmarray = parse_lsm($lsm);
168
  $lsmarray = parse_lsm($lsm);
169
  if (empty($lsmarray['version'])) {
169
  if (empty($lsmarray['version'])) {
170
    echo "ERROR: lsm file in {$fname} does not contain a version\n";
170
    echo "ERROR: lsm file in {$fname} does not contain a version\n";
Line 184... Line 184...
184
  $pkgdir = $pkgnam;
184
  $pkgdir = $pkgnam;
185
 
185
 
186
  // special rule for "parent and children" packages
186
  // special rule for "parent and children" packages
187
  if (str_head_is($pkgnam, 'djgpp_')) $pkgdir = 'djgpp'; // djgpp_* packages put their files in djgpp
187
  if (str_head_is($pkgnam, 'djgpp_')) $pkgdir = 'djgpp'; // djgpp_* packages put their files in djgpp
188
  if ($pkgnam == 'fbc_help') $pkgdir = 'fbc'; // FreeBASIC help goes to the FreeBASIC dir
188
  if ($pkgnam == 'fbc_help') $pkgdir = 'fbc'; // FreeBASIC help goes to the FreeBASIC dir
-
 
189
  if ($pkgnam == 'clamdb') $pkgdir = 'clamav'; // data patterns for clamav
189
 
190
 
190
  // array used to detect duplicated entries after lower-case conversion
191
  // array used to detect duplicated entries after lower-case conversion
191
  $duparr = array();
192
  $duparr = array();
192
 
193
 
193
  foreach ($listoffiles as $f) {
194
  foreach ($listoffiles as $f) {