'Copies the redhat package for the specified subsystem.
Args:
name [string]: The name of the subsystem repository.'

def start_copy_redhat_target(self, name):

    pids = []
    gradle_root = self.determine_gradle_root(name)
    version = determine_package_version(self.__options.platform, gradle_root)
    if (version is None):
        return []
    for root in determine_modules_with_redhats(gradle_root):
        rpm_dir = '{root}/build/distributions'.format(root=root)
        non_spinnaker_name = '{name}-{version}.noarch.rpm'.format(name=name, version=version)
        if os.path.exists(os.path.join(rpm_dir, ('spinnaker-' + non_spinnaker_name))):
            rpm_file = ('spinnaker-' + non_spinnaker_name)
        elif os.path.exists(os.path.join(rpm_dir, non_spinnaker_name)):
            rpm_file = non_spinnaker_name
        else:
            module_name = os.path.basename(os.path.dirname(os.path.dirname(rpm_dir)))
            rpm_file = '{module_name}-{version}.noarch.rpm'.format(module_name=module_name, version=version)
        if (not os.path.exists(os.path.join(rpm_dir, rpm_file))):
            error = '.rpm    for    name={name}    version={version}    is    not    in    {dir}\n'.format(name=name, version=version, dir=rpm_dir)
            raise AssertionError(error)
        from_path = os.path.join(rpm_dir, rpm_file)
        print 'Adding    {path}'.format(path=from_path)
        self.__package_list.append(from_path)
        basename = os.path.basename(from_path)
        module_name = re.search('^(.*)-{}.noarch.rpm$'.format(version), basename).group(1)
        if self.__options.bintray_repo:
            self.publish_file(from_path, module_name, version)
    return pids
