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:33:57
Message-Id: 20130929183322.6BB6C2004C@flycatcher.gentoo.org
1 vapier 13/09/29 18:33:22
2
3 Modified: qcache.c
4 Log:
5 qcache: do not warn when we cannot open a source dir as people can create categories locally that no longer exist
6
7 Revision Changes Path
8 1.44 portage-utils/qcache.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?rev=1.44&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?rev=1.44&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qcache.c?r1=1.43&r2=1.44
13
14 Index: qcache.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v
17 retrieving revision 1.43
18 retrieving revision 1.44
19 diff -u -r1.43 -r1.44
20 --- qcache.c 29 Sep 2013 18:32:44 -0000 1.43
21 +++ qcache.c 29 Sep 2013 18:33:22 -0000 1.44
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.43 2013/09/29 18:32:44 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v 1.44 2013/09/29 18:33: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.43 2013/09/29 18:32:44 vapier Exp $";
36 +static const char qcache_rcsid[] = "$Id: qcache.c,v 1.44 2013/09/29 18:33: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 @@ -530,7 +530,8 @@
41 xasprintf(&pkgpath, "%s/%s", portdir, categories[i]->d_name);
42
43 if (-1 == (num_pkg = scandir(pkgpath, &packages, qcache_file_select, alphasort))) {
44 - warnp("Found a cache dir, but unable to process %s", pkgpath);
45 + if (errno != ENOENT)
46 + warnp("Found a cache dir, but unable to process %s", pkgpath);
47 free(categories[i]);
48 free(pkgpath);
49 continue;