poldek: poldek/pkgdir/pndir/save.c - no langs in empty index
mis
mis at pld-linux.org
Sat Jun 23 21:08:45 CEST 2007
Author: mis Date: Sat Jun 23 19:08:45 2007 GMT
Module: poldek Tag: HEAD
---- Log message:
- no langs in empty index
---- Files affected:
poldek/poldek/pkgdir/pndir:
save.c (1.30 -> 1.31)
---- Diffs:
================================================================
Index: poldek/poldek/pkgdir/pndir/save.c
diff -u poldek/poldek/pkgdir/pndir/save.c:1.30 poldek/poldek/pkgdir/pndir/save.c:1.31
--- poldek/poldek/pkgdir/pndir/save.c:1.30 Sat Jun 23 19:44:45 2007
+++ poldek/poldek/pkgdir/pndir/save.c Sat Jun 23 21:08:40 2007
@@ -254,7 +254,7 @@
DBGF("avlangs_h %p %d\n", pkgdir->avlangs_h,
pkgdir->avlangs_h ? n_hash_size(pkgdir->avlangs_h) : 0);
- if ((flags & PKGDIR_CREAT_NODESC) == 0)
+ if (pkgdir->pkgs && (flags & PKGDIR_CREAT_NODESC) == 0)
*langstosave_h = put_avlangs(db, pkgdir, nbuf);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/poldek/poldek/pkgdir/pndir/save.c?r1=1.30&r2=1.31&f=u
More information about the pld-cvs-commit
mailing list