poldek: poldek/pkgdir/rpmdb/rpmdb.c - grab mtime of empty database...
mis
mis at pld-linux.org
Tue Aug 22 17:14:25 CEST 2006
Author: mis Date: Tue Aug 22 15:14:25 2006 GMT
Module: poldek Tag: HEAD
---- Log message:
- grab mtime of empty database too (fixes ''Assertion 'pkgdir->ts' failed'')
---- Files affected:
poldek/poldek/pkgdir/rpmdb:
rpmdb.c (1.26 -> 1.27)
---- Diffs:
================================================================
Index: poldek/poldek/pkgdir/rpmdb/rpmdb.c
diff -u poldek/poldek/pkgdir/rpmdb/rpmdb.c:1.26 poldek/poldek/pkgdir/rpmdb/rpmdb.c:1.27
--- poldek/poldek/pkgdir/rpmdb/rpmdb.c:1.26 Sat Sep 17 19:17:04 2005
+++ poldek/poldek/pkgdir/rpmdb/rpmdb.c Tue Aug 22 17:14:20 2006
@@ -244,21 +244,21 @@
struct pm_ctx *pmctx = pkgdir->mod_data;
n_assert(pmctx);
-
if (pkgdir->pkgroups == NULL)
pkgdir->pkgroups = pkgroup_idx_new();
+
+ pkgdir->ts = pm_dbmtime(pmctx, pkgdir->idxpath);
if (!load_db_packages(pkgdir->mod_data, pkgdir, pkgdir->pkgs, "/",
pkgdir->idxpath, pkgdir->pkgroups, ldflags,
pkgdir->na))
return 0;
-
+
for (i=0; i < n_array_size(pkgdir->pkgs); i++) {
struct pkg *pkg = n_array_nth(pkgdir->pkgs, i);
pkg->pkgdir = pkgdir;
}
- pkgdir->ts = pm_dbmtime(pmctx, pkgdir->idxpath);
return n_array_size(pkgdir->pkgs);
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/poldek/poldek/pkgdir/rpmdb/rpmdb.c?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list