poldek: poldek/pm/rpm/misc.c - fixed bug on getting rpmlib caps fo...
mis
mis at pld-linux.org
Sat Mar 18 17:32:20 CET 2006
Author: mis Date: Sat Mar 18 16:32:20 2006 GMT
Module: poldek Tag: HEAD
---- Log message:
- fixed bug on getting rpmlib caps for rpm < 4.4.3
---- Files affected:
poldek/poldek/pm/rpm:
misc.c (1.5 -> 1.6)
---- Diffs:
================================================================
Index: poldek/poldek/pm/rpm/misc.c
diff -u poldek/poldek/pm/rpm/misc.c:1.5 poldek/poldek/pm/rpm/misc.c:1.6
--- poldek/poldek/pm/rpm/misc.c:1.5 Sat Jan 7 02:12:01 2006
+++ poldek/poldek/pm/rpm/misc.c Sat Mar 18 17:32:15 2006
@@ -74,13 +74,13 @@
char **names = NULL, **versions = NULL, *evr;
int *flags = NULL, n = 0, i;
+ n_assert(caps);
n = rpmGetRpmlibProvides((const char ***)&names, &flags, (const char ***)&versions);
if (n <= 0)
return 0;
- caps = capreq_arr_new(0);
evr = alloca(128);
-
+
for (i=0; i<n; i++) {
struct capreq *cr;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/poldek/poldek/pm/rpm/misc.c?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list