Yield PackageData objects from an installed database file at `location` or None. Typically found at '/lib/apk/db/installed' in an Alpine installation. Note: http://uk.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz are also in the same format as an installed database.
(location, datasource_id, package_type, package_only=False)
| 174 | |
| 175 | |
| 176 | def parse_alpine_installed_db(location, datasource_id, package_type, package_only=False): |
| 177 | """ |
| 178 | Yield PackageData objects from an installed database file at `location` |
| 179 | or None. Typically found at '/lib/apk/db/installed' in an Alpine |
| 180 | installation. |
| 181 | |
| 182 | Note: http://uk.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz are |
| 183 | also in the same format as an installed database. |
| 184 | """ |
| 185 | for package_fields in get_alpine_installed_db_fields(location): |
| 186 | yield build_package_data( |
| 187 | package_fields=package_fields, |
| 188 | datasource_id=datasource_id, |
| 189 | package_type=package_type, |
| 190 | package_only=package_only, |
| 191 | ) |
| 192 | |
| 193 | |
| 194 | def get_alpine_installed_db_fields(location): |
no test coverage detected