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: qcache.c
Date: Sun, 29 Sep 2013 18:40:29
Message-Id: 20130929184022.8FB5C2004C@flycatcher.gentoo.org
1 vapier 13/09/29 18:40:22
2
3 Modified: qcache.c
4 Log:
5 qcache: include errno when warning about cache read errors
6
7 Revision Changes Path
8 1.46 portage-utils/qcache.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?rev=1.46&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?rev=1.46&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?r1=1.45&r2=1.46
13
14 Index: qcache.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v
17 retrieving revision 1.45
18 retrieving revision 1.46
19 diff -u -r1.45 -r1.46
20 --- qcache.c 29 Sep 2013 18:36:11 -0000 1.45
21 +++ qcache.c 29 Sep 2013 18:40:22 -0000 1.46
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/qcache.c,v 1.45 2013/09/29 18:36:11 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v 1.46 2013/09/29 18:40:22 vapier Exp $
28 *
29 * Copyright 2006 Thomas A. Cort - <tcort@g.o>
30 */
31 @@ -47,7 +47,7 @@
32 COMMON_OPTS_HELP
33 };
34
35 -static const char qcache_rcsid[] = "$Id: qcache.c,v 1.45 2013/09/29 18:36:11 vapier Exp $";
36 +static const char qcache_rcsid[] = "$Id: qcache.c,v 1.46 2013/09/29 18:40:22 vapier Exp $";
37 #define qcache_usage(ret) usage(ret, QCACHE_FLAGS, qcache_long_opts, qcache_opts_help, lookup_applet_idx("qcache"))
38
39 /********************************************************************/
40 @@ -598,8 +598,8 @@
41
42 qcache_free_data(data.cache_data);
43 } else
44 - warn("unable to read cache '%s'\n"
45 - "\tperhaps you need to `egencache -j 4` ?", cachepath);
46 + warnp("unable to read cache '%s'\n"
47 + "\tperhaps you need to `egencache -j 4` ?", cachepath);
48
49 free(ebuilds[k]);
50 free(cachepath);