macports / upt-macports

The Universal Packaging Tool (upt) backend for MacPorts
https://framagit.org/upt/upt
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Do not scan the frontend twice #41

Closed Steap closed 5 years ago

Steap commented 5 years ago

In _create_output_directories, we "scan" the frontend:

    upt2macports = {
        'cpan': 'perl',
        'pypi': 'python',
        'rubygems': 'ruby',
    }

We already do that once in MacportsBackend.create_package(). We should only do it once.

Korusuke commented 5 years ago

We can do something like add a variable category = 'python' to MacPortsPythonPackage() and use that directly in place of port_category