pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/delete Be nice to stupid ve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/43ca0e109918
branches:  trunk
changeset: 555447:43ca0e109918
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Mar 02 15:15:06 2009 +0000

description:
Be nice to stupid version of TAILQ_INSERT_TAIL on Linux, that doesn't
create a block context.

diffstat:

 pkgtools/pkg_install/files/delete/pkg_delete.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 281b90f7ad92 -r 43ca0e109918 pkgtools/pkg_install/files/delete/pkg_delete.c
--- a/pkgtools/pkg_install/files/delete/pkg_delete.c    Mon Mar 02 15:13:56 2009 +0000
+++ b/pkgtools/pkg_install/files/delete/pkg_delete.c    Mon Mar 02 15:15:06 2009 +0000
@@ -34,7 +34,7 @@
 #if HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
 #endif
-__RCSID("$NetBSD: pkg_delete.c,v 1.1 2009/02/25 16:29:08 joerg Exp $");
+__RCSID("$NetBSD: pkg_delete.c,v 1.2 2009/03/02 15:15:06 joerg Exp $");
 
 #if HAVE_ERR_H
 #include <err.h>
@@ -292,9 +292,9 @@
                    "Package `%s' is still required by other packages:\n",
                    lpp->lp_name);              
                process_required_by(lpp->lp_name, NULL, sorted_pkgs, 2);
-               if (Force)
+               if (Force) {
                        TAILQ_INSERT_TAIL(sorted_pkgs, lpp, lp_link);
-               else
+               } else
                        free_lpkg(lpp);
        }
 



Home | Main Index | Thread Index | Old Index