summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-03-02 15:15:06 +0000
committerjoerg <joerg@pkgsrc.org>2009-03-02 15:15:06 +0000
commit9b9d6a3ce9a37b06cb07f9ffb9ef01b4f8254bb3 (patch)
tree7ebc52564a7d320774cea3043b38ace9e708a6f8 /pkgtools
parenta35d1f12e2d0dc5f32b7c7d89a08aee171a9cac0 (diff)
downloadpkgsrc-9b9d6a3ce9a37b06cb07f9ffb9ef01b4f8254bb3.tar.gz
Be nice to stupid version of TAILQ_INSERT_TAIL on Linux, that doesn't
create a block context.
Diffstat (limited to 'pkgtools')
-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);
}