Return PackageData from ``location``
(
location,
datasource_id='msi_installer',
package_type='msi',
package_only=False,
)
| 165 | |
| 166 | |
| 167 | def msi_parse( |
| 168 | location, |
| 169 | datasource_id='msi_installer', |
| 170 | package_type='msi', |
| 171 | package_only=False, |
| 172 | ): |
| 173 | """ |
| 174 | Return PackageData from ``location`` |
| 175 | """ |
| 176 | if on_linux: |
| 177 | info = get_msi_info(location) |
| 178 | return create_package_data_from_msiinfo_results( |
| 179 | msiinfo_results=info, |
| 180 | datasource_id=datasource_id, |
| 181 | package_type=package_type, |
| 182 | package_only=package_only, |
| 183 | ) |
| 184 | else: |
| 185 | return models.PackageData( |
| 186 | datasource_id=datasource_id, |
| 187 | type=package_type, |
| 188 | ) |
| 189 | |
| 190 | |
| 191 | class MsiInstallerHandler(models.DatafileHandler): |
no test coverage detected