summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2009-03-02 15:15:06 +0000
committerjoerg <joerg>2009-03-02 15:15:06 +0000
commit4d1b8f50fc62cb4c5f7211fa8625833abf331e87 (patch)
tree7ebc52564a7d320774cea3043b38ace9e708a6f8
parentc70dab52fa385be1ab2b948bf922399600fa5919 (diff)
downloadpkgsrc-4d1b8f50fc62cb4c5f7211fa8625833abf331e87.tar.gz
Be nice to stupid version of TAILQ_INSERT_TAIL on Linux, that doesn't
create a block context.
-rw-r--r--pkgtools/pkg_install/files/delete/pkg_delete.c6
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);
}