Subversion Repositories SvarDOS

Rev

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

Rev 1965 Rev 1972
Line 45... Line 45...
45
      if (fdnpkg_strcasestr(ep->d_name, filterstr) == NULL) continue; /* skip if not matching the non-NULL filter */
45
      if (fdnpkg_strcasestr(ep->d_name, filterstr) == NULL) continue; /* skip if not matching the non-NULL filter */
46
    }
46
    }
47
 
47
 
48
    /* load the metadata from %DOSDIR\APPINFO\*.lsm */
48
    /* load the metadata from %DOSDIR\APPINFO\*.lsm */
49
    sprintf(buff, "%s\\appinfo\\%s.lsm", dosdir, ep->d_name);
49
    sprintf(buff, "%s\\appinfo\\%s.lsm", dosdir, ep->d_name);
50
    readlsm(buff, ver, sizeof(ver));
50
    readlsm(buff, "version", ver, sizeof(ver));
-
 
51
    readlsm(buff, "description", buff, 80 - 2 - strlen(ver) - strlen(ep->d_name));
51
 
52
 
52
    output(ep->d_name);
53
    output(ep->d_name);
53
    output(" ");
54
    output(" ");
54
    outputnl(ver);
55
    output(ver);
-
 
56
    output(" ");
-
 
57
    outputnl(buff);
55
    matchfound = 1;
58
    matchfound = 1;
56
  }
59
  }
57
  if (matchfound == 0) outputnl(svarlang_str(5, 0)); /* "No package matched the search." */
60
  if (matchfound == 0) outputnl(svarlang_str(5, 0)); /* "No package matched the search." */
58
 
61
 
59
  closedir(dp);
62
  closedir(dp);