Aurelien Larcher
2020-06-06 1fa5155cd4e625b8a291a181454530f293b3f534
bass-o-matic: set pkg repository URI if package is not in oi-userland
1 files modified
9 ■■■■■ changed files
tools/bass-o-matic 9 ●●●●● patch | view | raw | blame | history
tools/bass-o-matic
@@ -243,9 +243,12 @@
                component_path[entry['fmri']] = entry['path']
            for component in components:
                for fmri in component.supplied_packages:
                    paths = set([component_path[i] for i in component.required_packages])
                    dependencies[fmri] = list(paths)
                selfpath = component.path.split(os.path.join(workspace, subdir))[-1].replace('/', '', 1)
                # Some packages from OpenSolaris only exist in binary form in the pkg repository
                paths = set([component_path.get(i, "https://pkg.openindiana.org/hipster") for i in component.required_packages])
                # Remove self from the set of paths it depends on
                paths.discard(selfpath)
                dependencies[selfpath] = sorted(list(paths))
            dependencies_file = os.path.join(workspace, subdir, 'dependencies.json')
            with open(dependencies_file, 'w') as f: