You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:11:22 UTC

[buildstream] 13/41: Fixup compose: pep8

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch jmac/googlecas_and_virtual_directories_1
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 27a83e1ec9206339b0792d5150b74c06b1b275b0
Author: Jim MacArthur <ji...@codethink.co.uk>
AuthorDate: Thu May 17 10:10:12 2018 +0100

    Fixup compose: pep8
---
 buildstream/plugins/elements/compose.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/buildstream/plugins/elements/compose.py b/buildstream/plugins/elements/compose.py
index c6ac1bf..76f985f 100644
--- a/buildstream/plugins/elements/compose.py
+++ b/buildstream/plugins/elements/compose.py
@@ -122,7 +122,6 @@ class ComposeElement(Element):
                     snapshot = set(vbasedir.list_relative_paths())
                     vbasedir.mark_unmodified()
 
-
                 for dep in self.dependencies(Scope.BUILD):
                     dep.integrate(sandbox)
 
@@ -132,7 +131,7 @@ class ComposeElement(Element):
                     modified_files = set(vbasedir.list_modified_paths())
                     basedir_contents = set(post_integration_snapshot)
                     for path in manifest:
-                        if path in snapshot and not path in basedir_contents:
+                        if path in snapshot and path not in basedir_contents:
                             removed_files.add(path)
 
                     for path in basedir_contents: