forked from vieter-v/vieter
Overcomplicated the test script because of course [CI SKIP]
This commit is contained in:
parent
4c56351132
commit
766e097be8
2 changed files with 45 additions and 17 deletions
|
|
@ -107,7 +107,6 @@ pub fn read_pkg(pkg_path string) ?Pkg {
|
|||
|
||||
a := C.archive_read_new()
|
||||
entry := C.archive_entry_new()
|
||||
mut r := 0
|
||||
|
||||
// Sinds 2020, all newly built Arch packages use zstd
|
||||
C.archive_read_support_filter_zstd(a)
|
||||
|
|
@ -116,7 +115,7 @@ pub fn read_pkg(pkg_path string) ?Pkg {
|
|||
C.archive_read_support_format_tar(a)
|
||||
|
||||
// TODO find out where does this 10240 come from
|
||||
r = C.archive_read_open_filename(a, &char(pkg_path.str), 10240)
|
||||
r := C.archive_read_open_filename(a, &char(pkg_path.str), 10240)
|
||||
|
||||
if r != C.ARCHIVE_OK {
|
||||
return error('Failed to open package.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue