diff options
-rw-r--r-- | meta/classes/packaged-staging.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass index a7dd1f80c1..690e41e1e2 100644 --- a/meta/classes/packaged-staging.bbclass +++ b/meta/classes/packaged-staging.bbclass | |||
@@ -88,6 +88,9 @@ def pstage_manualclean(srcname, destvarname, d): | |||
88 | 88 | ||
89 | for walkroot, dirs, files in os.walk(src): | 89 | for walkroot, dirs, files in os.walk(src): |
90 | for file in files: | 90 | for file in files: |
91 | # Avoid breaking the held lock | ||
92 | if (file == "staging.lock"): | ||
93 | continue | ||
91 | filepath = os.path.join(walkroot, file).replace(src, dest) | 94 | filepath = os.path.join(walkroot, file).replace(src, dest) |
92 | bb.note("rm %s" % filepath) | 95 | bb.note("rm %s" % filepath) |
93 | os.system("rm %s" % filepath) | 96 | os.system("rm %s" % filepath) |