aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
AgeCommit message (Expand)Author
2018-01-16meson: remove recipe and classAlexander Kanavin
2017-08-13meson: set needs_exe_wrapperRoss Burton
2017-07-01meson: set native tool flag variablesRoss Burton
2017-07-01meson: export PKG_CONFIG to use pkg-config-native for native buildsRoss Burton
2017-07-01meson: don't pass localedirRoss Burton
2017-07-01Revert "meson: fix build/host confusion for bbclass"Ross Burton
2017-07-01meson: revert changes which shouldn't have been submittedRoss Burton
2017-06-22gitver: skip packages instead of panic()ing if ${GITVER} fails to expandAlejandro Mery
2017-06-14gitver: fix broken ${GITSHA} and recursion in S when PV="${GITVER}"Alejandro Mery
2017-06-14gitver: extend class to use EXTERNALSRC if setAlejandro Mery
2017-06-14dos2unix.bbclass: add recipeMing Liu
2017-06-14meson: add LDFLAGS to bbclass C/C++ link argumentsAdam C. Foltzer
2017-06-14meson: fix build/host confusion for bbclassAdam C. Foltzer
2017-06-05meson: Suport for c++ cross-compilationRicardo Ribalda Delgado
2017-03-16meson.bbclass: Use the correct C++ compiler when cross compilingPeter Kjellerstedt
2017-03-16meson.bbclass: Support building for nativePeter Kjellerstedt
2017-03-16meson.bbclass: Make changes to meson.build files trigger reconfigurationPeter Kjellerstedt
2017-03-16meson.bbclass: Add support for more standard installation directoriesPeter Kjellerstedt
2017-03-07gitver: fix try/except syntax for python3 supportAlejandro Mery
2017-03-07meson.bbclass: Add progress support for do_compile()Peter Kjellerstedt
2017-02-22gitpkgv.bbclass: fix versioning with multiple reposS. Lockwood-Childs
2017-02-20meson.bbclass: Add meson.bbclassLinus Svensson
2016-12-02remove True option to getVar callsJoshua Lock
2016-09-05gitpkgv: Fix $GITPKV for a single named git sourceClemens Lang
2016-06-08gitkpkgv: Ensure files are closedRichard Purdie
2016-05-12autotools-bootstrap: make bootstrap package specific.Paul Gortmaker
2016-04-01waf-samba.bbclass: move to meta-networkingJackie Huang
2016-03-02waf-samba.bbclass: add cross-answers option and filesJackie Huang
2016-01-06waf-samba: enable parallel buildsJens Rehsack
2015-12-18gitpkgv.bbclass: Add support for gitsm:// url typeDaniel Adolfsson
2015-11-06autotools-bootstrap.bbclass: initial addAndreas Müller
2015-11-02waf-samba.bbclass: add missing qemu optionsJackie Huang
2015-09-23waf-samba.bbclass: remove bashismJackie Huang
2015-08-24waf-samba: add new classBian Naimeng
2015-04-21socorro-syms: Limit the search for repository to within the build directoryDaniel Markus
2015-04-13socorro-syms: Correct the extraction of repository branchDaniel Markus
2015-04-13socorro-syms: Add support for local repositoriesDaniel Markus
2015-03-21socorro-syms: Add directory arrangement needed by minidump_stackwalkDaniel Markus
2015-03-03socorro-syms: Add Breakpad symbol generation adapted for SocorroDaniel Markus
2014-11-07breakpad: correct the file suffix of the symbol fileAnders Darander
2014-07-15meta-oe: use BPN in SRC_URIRobert Yang
2014-05-03breakpad.bbclass: set includedir in CXXFLAGSAnders Darander
2013-10-21breakpad: add initial recipeAnders Darander
2013-09-03classes/vala: removePaul Eggleton
2013-04-15recipes: Unify indentationMartin Jansa
2013-02-16update-fonts.bbclass: remove - we now use oe-core's fontcache.bbclassAndreas Müller
2013-02-06ttf: introduce update-fonts bbclass and change all ttf recipes to use itMartin Jansa
2013-01-18gitpkgv.bbclass: cache GITPKGV resultEnrico Scholz
2012-11-29kernel bbclass: deleteKoen Kooi
2012-11-13kernel.bbclass: remove explicit version.h targetBruce Ashfield
ledore-nut'>stable/mickledore-nut OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/pseudo/files/0001-pseudo-On-a-DB-fixup-remove-files-that-do-not-exist-.patch
blob: 9c49e33b0211cd1e659aab1d74860198d4394f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From b0902e36108b49e6bc88d6b251cc2f8cffcd5a13 Mon Sep 17 00:00:00 2001
From: Ricardo Ribalda <ricardo@ribalda.com>
Date: Sun, 5 Apr 2020 11:40:30 +0000
Subject: [PATCH] pseudo: On a DB fixup remove files that do not exist anymore

If the user decides to fix a database, remove the files that do not
exist anymore.
If only DB test is selected do not change the behaviour (return error).

Signed-off-by: Ricardo Ribalda <ricardo@ribalda.com>
Upstream-Status: Submitted [https://lists.openembedded.org/g/openembedded-core/message/137045]
---
 pseudo.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/pseudo.c b/pseudo.c
index 0f5850e..98e5b0c 100644
--- a/pseudo.c
+++ b/pseudo.c
@@ -1087,9 +1087,15 @@ pseudo_db_check(int fix) {
 			int fixup_needed = 0;
 			pseudo_debug(PDBGF_DB, "Checking <%s>\n", m->path);
 			if (lstat(m->path, &buf)) {
-				errors = EXIT_FAILURE;
-				pseudo_diag("can't stat <%s>\n", m->path);
-				continue;
+				if (!fix) {
+					pseudo_diag("can't stat <%s>\n", m->path);
+					errors = EXIT_FAILURE;
+					continue;
+				} else {
+					pseudo_debug(PDBGF_DB, "can't stat <%s>\n", m->path);
+					fixup_needed = 2;
+					goto do_fixup;
+				}
 			}
 			/* can't check for device type mismatches, uid/gid, or
 			 * permissions, because those are the very things we
@@ -1125,6 +1131,7 @@ pseudo_db_check(int fix) {
 					S_ISDIR(m->mode));
 				fixup_needed = 2;
 			}
+			do_fixup:
 			if (fixup_needed) {
 				/* in fixup mode, either delete (mismatches) or
 				 * correct (dev/ino).
-- 
2.21.1