poldek: poldek/install3/misc.c - cleanups

mis mis at pld-linux.org
Fri Jan 25 15:24:44 CET 2008


Author: mis                          Date: Fri Jan 25 14:24:44 2008 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- cleanups

---- Files affected:
poldek/poldek/install3:
   misc.c (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: poldek/poldek/install3/misc.c
diff -u poldek/poldek/install3/misc.c:1.1 poldek/poldek/install3/misc.c:1.2
--- poldek/poldek/install3/misc.c:1.1	Wed Jan 23 23:56:19 2008
+++ poldek/poldek/install3/misc.c	Fri Jan 25 15:24:39 2008
@@ -29,23 +29,22 @@
         return 0;
     }
     
-    //pkgs_array_dump(dbpkgs, "before_multilib");
-    if (poldek_conf_MULTILIB) {
+    if (poldek_conf_MULTILIB) { /* filter out different architectures */
         int i;
         tn_array *arr = n_array_clone(dbpkgs);
 
-        DBGF("pkg = %s\n", pkg_id(pkg));
+        //DBGF("pkg = %s\n", pkg_id(pkg));
+        //pkgs_array_dump(dbpkgs, "before_multilib");
         for (i=0; i < n_array_size(dbpkgs); i++) {
             struct pkg *dbpkg = n_array_nth(dbpkgs, i);
-            
-            if (pkg_is_kind_of(pkg, dbpkg))
+            if (pkg_is_kind_of(dbpkg, pkg))
                 n_array_push(arr, pkg_link(dbpkg));
         }
-
+        
         n_array_cfree(&dbpkgs);
         dbpkgs = arr;
         n = n_array_size(arr);
-        //pkgs_array_dump(arr, "after_multilib");
+        //pkgs_array_dump(dbpkgs, "after_multilib");
     }
 
     if (n) {
@@ -292,7 +291,7 @@
 }
 
 struct pkg *i3_select_successor(int indent, struct i3ctx *ictx,
-                                 const struct pkg *pkg)
+                                const struct pkg *pkg)
 {
     const struct pkg *selected_pkg = NULL;
     tn_array *pkgs;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/install3/misc.c?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list