Overcomplicated the test script because of course [CI SKIP]

This commit is contained in:
Jef Roosens 2022-01-30 18:02:45 +01:00
parent 4c56351132
commit 766e097be8
Signed by untrusted user: Jef Roosens
GPG key ID: B580B976584B5F30
2 changed files with 45 additions and 17 deletions

View file

@ -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.')