poldek: poldek/cli/ls.c - debug message off; spkg local to its block

mis mis at pld-linux.org
Wed Jun 4 21:54:09 CEST 2008


Author: mis                          Date: Wed Jun  4 19:54:09 2008 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- debug message off; spkg local to its block

---- Files affected:
poldek/poldek/cli:
   ls.c (1.30 -> 1.31) 

---- Diffs:

================================================================
Index: poldek/poldek/cli/ls.c
diff -u poldek/poldek/cli/ls.c:1.30 poldek/poldek/cli/ls.c:1.31
--- poldek/poldek/cli/ls.c:1.30	Tue Jun  3 21:29:38 2008
+++ poldek/poldek/cli/ls.c	Wed Jun  4 21:54:04 2008
@@ -233,7 +233,7 @@
     for (i=0; i < n_array_size(ls_ents); i++) {
         struct pkg_dent  *ent;
         struct pkg       *rpkg = NULL;
-        char             evr[128], *spkg;
+        char             evr[128];
         int              cmprc = 0;
         
         ent = n_array_nth(ls_ents, i);
@@ -251,10 +251,11 @@
             continue;
 
         if (cmdctx->_flags & OPT_LS_UPGRADEABLE_SEC) {
-            spkg = pkg_srcfilename_s(rpkg);
+            const char *spkg = pkg_srcfilename_s(rpkg);
 
             if (spkg && n_array_bsearch(srcpkgs, spkg)) { /* parent included, so me too */
                 found = 1;
+
             } else {
                 struct pkg *ipkg, *upkg;
                 struct pkguinf *inf;
@@ -275,7 +276,7 @@
                     if ((sp = pkg_srcfilename_s(rpkg))) {
                         n_array_push(srcpkgs, n_strdup(sp));
                         n_array_sort(srcpkgs);
-                        DBGF_F("%s\n", sp);
+                        DBGF("%s\n", sp);
                     }
                     found = 1;
                 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/cli/ls.c?r1=1.30&r2=1.31&f=u



More information about the pld-cvs-commit mailing list