Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils: qdepends.c
Date: Wed, 21 Dec 2011 21:54:55
Message-Id: 20111221215445.113C92004B@flycatcher.gentoo.org
1 vapier 11/12/21 21:54:45
2
3 Modified: qdepends.c
4 Log:
5 do not warn if we could not eat the depends file since it might not exist in which case we do not care #395591 by Tomasz Wasiak
6
7 Revision Changes Path
8 1.56 portage-utils/qdepends.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qdepends.c?rev=1.56&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qdepends.c?rev=1.56&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qdepends.c?r1=1.55&r2=1.56
13
14 Index: qdepends.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/qdepends.c,v
17 retrieving revision 1.55
18 retrieving revision 1.56
19 diff -u -r1.55 -r1.56
20 --- qdepends.c 19 Dec 2011 04:28:35 -0000 1.55
21 +++ qdepends.c 21 Dec 2011 21:54:44 -0000 1.56
22 @@ -1,7 +1,7 @@
23 /*
24 * Copyright 2005-2010 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/qdepends.c,v 1.55 2011/12/19 04:28:35 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qdepends.c,v 1.56 2011/12/21 21:54:44 vapier Exp $
28 *
29 * Copyright 2005-2010 Ned Ludd - <solar@g.o>
30 * Copyright 2005-2010 Mike Frysinger - <vapier@g.o>
31 @@ -30,7 +30,7 @@
32 "Show all DEPEND info",
33 COMMON_OPTS_HELP
34 };
35 -static const char qdepends_rcsid[] = "$Id: qdepends.c,v 1.55 2011/12/19 04:28:35 vapier Exp $";
36 +static const char qdepends_rcsid[] = "$Id: qdepends.c,v 1.56 2011/12/21 21:54:44 vapier Exp $";
37 #define qdepends_usage(ret) usage(ret, QDEPENDS_FLAGS, qdepends_long_opts, qdepends_opts_help, lookup_applet_idx("qdepends"))
38
39 static char qdep_name_only = 0;
40 @@ -375,11 +375,8 @@
41
42 IF_DEBUG(warn("matched %s/%s", catname, pkgname));
43
44 - if (!eat_file_at(pkg_ctx->fd, state->depend_file, depend, sizeof(depend))) {
45 - warn("i'm such a fatty, could not eat_file(%s) with %zi bytes",
46 - state->depend_file, sizeof(depend));
47 + if (!eat_file_at(pkg_ctx->fd, state->depend_file, depend, sizeof(depend)))
48 return 0;
49 - }
50
51 IF_DEBUG(warn("growing tree..."));
52 dep_tree = dep_grow_tree(depend);
53 @@ -437,10 +434,8 @@
54
55 IF_DEBUG(warn("matched %s/%s", catname, pkgname));
56
57 - if (!eat_file_at(pkg_ctx->fd, state->depend_file, depend, sizeof(depend))) {
58 - warn("i'm such a fatty, could not eat_file(%s)", state->depend_file);
59 + if (!eat_file_at(pkg_ctx->fd, state->depend_file, depend, sizeof(depend)))
60 return 0;
61 - }
62
63 IF_DEBUG(warn("growing tree..."));
64 dep_tree = dep_grow_tree(depend);