Author: mis                          Date: Tue Jan 22 20:00:49 2008 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- fixed summary displaying

---- Files affected:
poldek/poldek:
   install-dist.c (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: poldek/poldek/install-dist.c
diff -u poldek/poldek/install-dist.c:1.11 poldek/poldek/install-dist.c:1.12
--- poldek/poldek/install-dist.c:1.11   Mon Jul 16 21:51:05 2007
+++ poldek/poldek/install-dist.c        Tue Jan 22 21:00:43 2008
@@ -129,6 +129,7 @@
     tn_array          *pkgs = NULL;
     
     n_assert(ts->db->rootdir);
+    
     if (!poldek_util_is_rwxdir(ts->db->rootdir)) {
         logn(LOGERR, "access %s: %m", ts->db->rootdir);
         return 0;
@@ -208,17 +209,19 @@
     tn_array *pkgs, *depkgs;
     
     pkgs = pkgmark_get_packages(ts->pms, PKGMARK_MARK);
+    n_assert(pkgs); /* function should not be called if no marked packages */
+    
     n = n_array_size(pkgs);
     
     depkgs = pkgmark_get_packages(ts->pms, PKGMARK_DEP);
     if (depkgs)
         ndep = n_array_size(depkgs);
 
-    poldek__ts_update_summary(ts, "I", pkgs, PKGMARK_MARK, ts->pms);
+    poldek__ts_update_summary(ts, "I", pkgs, 0, NULL);
     n_array_free(pkgs);
     
     if (depkgs) {
-        poldek__ts_update_summary(ts, "D", depkgs, PKGMARK_MARK, ts->pms);
+        poldek__ts_update_summary(ts, "D", depkgs, 0, NULL);
         n_array_free(depkgs);
     }
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/install-dist.c?r1=1.11&r2=1.12&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to