An additional package manager for managing Microsoft apps on Linux distros.
Provide a bunch of utilities for soypak. Specify compiled regexes for bottle file parsing. func@ensure_dir: - Will ensure that a directory that exists, and if it doesn't, will create it and any parents. Mode is 0755. - From DNF util module. func@join_path: - Will join any number of string paths together and return a new string path. - From eopkg util module. func@rack_bottle: - Function will aim to write a new bottle file out to the database (nickname: rack). - Either a string representation of a bottle file can be given, or a file descriptor of type TextIOWrapper, can be given as the file pointer: - if a TextIOWrapper, ensure that the pointer is at the start of the file to read the contents again. - if a string, the contents can be set at this. - Detect if there are any comments (useful from translating user defined bottles to be stored - Packages file won't have this). If so, remove them. - Ensure that the database rack exists. - Create the new filename to be stored. - Attempt to open the file in write mode and write the contents to file. Report on the amount of bytes written for clarity. - Function returns true if the file was successfully racked. False upon any failures. |
||
|---|---|---|
| assets | ||
| soypak | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| spec.bottle | ||