Adam Števko
2017-05-26 abd63fd9c31cf6f28e073209371568d87dcd15bb
bass-o-matic: always include meta-packages/history in incremental builds
1 files modified
9 ■■■■ changed files
tools/bass-o-matic 9 ●●●● patch | view | raw | blame | history
tools/bass-o-matic
@@ -87,12 +87,14 @@
            if filename == 'Makefile':
                if glob.glob(os.path.join(workspace_path, dirname, '*.p5m')):
                    paths.append(dirname)
        # Some components are using SCM checkout as a source code download method and
        # COMPONENT_REVISION is not bumped. With this, we will never rebuild them.
        # In order to rebuild them, we will look for such components and build them
        # every run. These components are located in openindiana category and we care
        # only about that category.
        # only about that category. One exception to this rule is meta-packages/history
        # component, which holds obsoleted components. We add it to paths manually for
        # that reason.
        cmd = ['git', 'grep', '-l', 'GIT_REPO *=']
        proc = subprocess.Popen(cmd,
@@ -121,6 +123,9 @@
                if glob.glob(os.path.join(workspace_path, dirname, '*.p5m')):
                    paths.append(os.path.dirname(line))
        # Add meta-packages/history
        paths.append('meta-packages/history')
        paths = list(set(paths))
    else: