(extension: &ExtensionCatalogEntry)
| 1509 | } |
| 1510 | |
| 1511 | fn build_kind(extension: &ExtensionCatalogEntry) -> &'static str { |
| 1512 | match extension.source_kind.as_str() { |
| 1513 | "postgres-contrib" => "postgres-contrib", |
| 1514 | "pglite-other-extension" => "pgxs-external", |
| 1515 | "postgis" => "postgis", |
| 1516 | _ => "unsupported", |
| 1517 | } |
| 1518 | } |
| 1519 | |
| 1520 | fn extension_source_dir(extension: &ExtensionCatalogEntry) -> String { |
| 1521 | extension_source_dir_for(&extension.id, &extension.source_kind) |