From: "Ned Ludd (solar)" <solar@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-projects commit in portage-utils: qmerge.c
Date: Mon, 18 Jan 2010 06:30:26 +0000 [thread overview]
Message-ID: <E1NWl86-0004qB-T8@stork.gentoo.org> (raw)
solar 10/01/18 06:30:26
Modified: qmerge.c
Log:
- when DEFINED_PHASES exists no longer run postinst unless it is defined
Revision Changes Path
1.93 portage-utils/qmerge.c
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/qmerge.c?rev=1.93&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/qmerge.c?rev=1.93&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/qmerge.c?r1=1.92&r2=1.93
Index: qmerge.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/qmerge.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- qmerge.c 13 Jan 2010 19:16:22 -0000 1.92
+++ qmerge.c 18 Jan 2010 06:30:26 -0000 1.93
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/qmerge.c,v 1.92 2010/01/13 19:16:22 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/qmerge.c,v 1.93 2010/01/18 06:30:26 solar Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -55,7 +55,7 @@
COMMON_OPTS_HELP
};
-static const char qmerge_rcsid[] = "$Id: qmerge.c,v 1.92 2010/01/13 19:16:22 vapier Exp $";
+static const char qmerge_rcsid[] = "$Id: qmerge.c,v 1.93 2010/01/18 06:30:26 solar Exp $";
#define qmerge_usage(ret) usage(ret, QMERGE_FLAGS, qmerge_long_opts, qmerge_opts_help, lookup_applet_idx("qmerge"))
char search_pkgs = 0;
@@ -402,6 +402,18 @@
return c;
}
+int has_postinst(char *vdbroot);
+int has_postinst(char *vdbroot) {
+ FILE *fp;
+ char buf[1024];
+ snprintf(buf, sizeof(buf), "%s/%s", vdbroot, "DEFINED_PHASES");
+ if ((fp = fopen(buf, "r")) == NULL)
+ return 1;
+ fgets(buf, sizeof(buf), fp);
+ fclose(fp);
+ return ((strstr(buf, "postinst") == NULL) ? 0 : 2);
+}
+
/* oh shit getting into pkg mgt here. FIXME: write a real dep resolver. */
void pkg_merge(int level, depend_atom *atom, struct pkg_t *pkg)
{
@@ -784,7 +796,7 @@
interactive_rename("vdb", buf, pkg);
/* run postinst on non embedded systems */
- if (which("ebuild") != NULL) {
+ if ((which("ebuild") != NULL) && has_postinst(buf)) {
char *tbuf;
xasprintf(&tbuf, "ebuild %s/%s.ebuild postinst", buf, basename(buf));
xsystem(tbuf);
next reply other threads:[~2010-01-18 6:30 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 6:30 Ned Ludd (solar) [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-02-18 6:59 [gentoo-commits] gentoo-projects commit in portage-utils: qmerge.c Mike Frysinger (vapier)
2014-02-18 6:58 Mike Frysinger (vapier)
2014-02-18 6:58 Mike Frysinger (vapier)
2014-02-18 6:57 Mike Frysinger (vapier)
2014-02-18 4:32 Mike Frysinger (vapier)
2014-02-17 6:32 Mike Frysinger (vapier)
2014-01-07 19:17 Mike Frysinger (vapier)
2013-05-09 5:28 Mike Frysinger (vapier)
2013-05-03 22:28 Mike Frysinger (vapier)
2013-04-30 1:50 Mike Frysinger (vapier)
2013-04-29 23:03 Mike Frysinger (vapier)
2013-04-29 16:30 Mike Frysinger (vapier)
2013-04-29 16:18 Mike Frysinger (vapier)
2013-04-29 6:29 Mike Frysinger (vapier)
2013-04-29 6:28 Mike Frysinger (vapier)
2013-04-29 6:26 Mike Frysinger (vapier)
2013-04-22 3:55 Mike Frysinger (vapier)
2013-04-20 7:32 Mike Frysinger (vapier)
2011-12-19 4:58 Mike Frysinger (vapier)
2011-12-18 20:41 Mike Frysinger (vapier)
2011-12-12 20:47 Fabian Groffen (grobian)
2011-10-02 22:09 Mike Frysinger (vapier)
2011-03-17 2:02 Mike Frysinger (vapier)
2011-03-05 19:28 Ned Ludd (solar)
2011-03-02 9:22 Mike Frysinger (vapier)
2011-03-02 3:51 Ned Ludd (solar)
2011-02-24 1:29 Mike Frysinger (vapier)
2011-02-22 6:10 Mike Frysinger (vapier)
2011-02-21 22:02 Mike Frysinger (vapier)
2011-02-21 1:52 Mike Frysinger (vapier)
2010-06-08 4:52 Mike Frysinger (vapier)
2010-01-13 19:15 Mike Frysinger (vapier)
2010-01-13 6:14 Ned Ludd (solar)
2009-05-03 17:19 Ned Ludd (solar)
2009-04-17 14:44 Ned Ludd (solar)
2009-03-21 6:37 Ned Ludd (solar)
2008-05-10 20:21 Diego Petteno (flameeyes)
2007-10-24 16:50 Ned Ludd (solar)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1NWl86-0004qB-T8@stork.gentoo.org \
--to=solar@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox