protected function preProcess(VcsDriverInterface $driver, array $data, $identifier)
    {
        // keep the name of the main identifier for all packages
        if ($this->packageName != $this->url) {
            $namespace = preg_replace('/([a-z0-9])([A-Z])/', '$1_$2', $data['namespace']);
            $namespace = strtolower($namespace);
            $data['name'] = $this->packageName . '-' . $namespace;
        }

        if (!isset($data['dist'])) {
            $data['dist'] = $driver->getDist($identifier);
        }
        if (!isset($data['source'])) {
            $data['source'] = $driver->getSource($identifier);
            $data['source']['type'] = $this->repoConfig['type'];
        }

        return $data;
    }