diff options
author | joerg <joerg> | 2009-03-02 15:15:06 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-03-02 15:15:06 +0000 |
commit | 2d1ac47da824491086eccb8d8eb68dc96a0c20c9 (patch) | |
tree | 7ebc52564a7d320774cea3043b38ace9e708a6f8 /pkgtools/pkg_install | |
parent | a763605c0c2aa6dbabe1081ea30b674a08ca8a86 (diff) | |
download | pkgsrc-2d1ac47da824491086eccb8d8eb68dc96a0c20c9.tar.gz |
Be nice to stupid version of TAILQ_INSERT_TAIL on Linux, that doesn't
create a block context.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/delete/pkg_delete.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/delete/pkg_delete.c b/pkgtools/pkg_install/files/delete/pkg_delete.c index 08a558241d6..67ba213d415 100644 --- a/pkgtools/pkg_install/files/delete/pkg_delete.c +++ b/pkgtools/pkg_install/files/delete/pkg_delete.c @@ -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 @@ sort_and_recurse(lpkg_head_t *pkgs, lpkg_head_t *sorted_pkgs) "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); } |