Creates an [alpm-install-scriptlet] file in `path`. [alpm-install-scriptlet]: https://alpm.archlinux.page/specifications/alpm-install-scriptlet.5.html
(path: impl AsRef<Path>)
| 223 | /// |
| 224 | /// [alpm-install-scriptlet]: https://alpm.archlinux.page/specifications/alpm-install-scriptlet.5.html |
| 225 | fn create_install_scriptlet(path: impl AsRef<Path>) -> TestResult { |
| 226 | let path = path.as_ref(); |
| 227 | let mut file = File::create(path.join(INSTALL_SCRIPTLET_FILE_NAME))?; |
| 228 | write!(file, "{VALID_INSTALL_SCRIPTLET}")?; |
| 229 | file.set_times(default_filetimes())?; |
| 230 | |
| 231 | Ok(()) |
| 232 | } |
| 233 | |
| 234 | /// Creates a [PKGINFO] file in `path`. |
| 235 | /// |
no test coverage detected