1 ===================================================================
2 RCS file: /cvsroot/installer/poldek/cli/shell.c,v
3 retrieving revision 1.27
4 retrieving revision 1.28
6 --- installer/poldek/cli/shell.c 2005/11/06 19:26:27 1.27
7 +++ installer/poldek/cli/shell.c 2005/11/10 19:21:04 1.28
9 struct pkg *ipkg = NULL;
15 dents = poclidek_get_dent_ents(cctx, POCLIDEK_INSTALLEDDIR);
19 - snprintf(name, sizeof(name), "%s-", pkg->name);
20 + name_len = snprintf(name, sizeof(name), "%s-", pkg->name);
21 n = n_array_bsearch_idx_ex(dents, name, (tn_fn_cmp)pkg_dent_strncmp);
26 while (n < n_array_size(dents)) {
27 struct pkg_dent *ent = n_array_nth(dents, n++);
29 if (pkg_dent_isdir(ent))
32 + if (strncmp(name, ent->name, name_len) != 0)
35 ipkg = ent->pkg_dent_pkg;
36 - if (strcmp(pkg->name, ipkg->name) != 0)
39 - if (pkg_cmp_evr(pkg, ipkg) > 0)
40 + if (strcmp(pkg->name, ipkg->name) == 0 && pkg_cmp_evr(pkg, ipkg) > 0)