forked from vieter-v/vieter
Added function to read .PKGINFO into struct
This commit is contained in:
parent
b5224e8a63
commit
5616e7a4e2
4 changed files with 101 additions and 10 deletions
|
|
@ -2,7 +2,7 @@ module archive
|
|||
|
||||
import os
|
||||
|
||||
pub fn get_pkg_info(pkg_path string) ?string {
|
||||
pub fn pkg_info_string(pkg_path string) ?string {
|
||||
if !os.is_file(pkg_path) {
|
||||
return error("'$pkg_path' doesn't exist or isn't a file.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue