• Adding supported_formats to Archive

    From nelgin@1:103/705 to Digital Man on Sat Oct 3 03:50:27 2026
    I'm wanting to add .gz files as supported types for Archive.

    I added gz as a supported type in scfg > File Options

    $ jsexec -n -r 'Archive.supported_formats.forEach(function(f){ print(f); })' zip
    7z
    tgz
    gz


    but I get the following:

    bbs@bbs:/sbbs/mods$ jsexec -n archive read /var/log/sbbs/web.sbbs.log.1.gz !JavaScript /sbbs/exec/archive.js line 49: Error: archive_read_open_filename() returned -30: Unrecognized archive format
    !Module (archive) set exit_code: 1

    I've obviously missed a step but I'm not sure what. Open to suggestions?

    Thanks,

    ---
    � Synchronet � End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deon@1:103/705 to nelgin on Sun Oct 4 09:42:25 2026
    Re: Adding supported_formats to Archive
    By: nelgin to Digital Man on Sat Oct 03 2026 03:50 am

    Howdy,

    I'm wanting to add .gz files as supported types for Archive.

    I added gz as a supported type in scfg > File Options
    but I get the following:

    bbs@bbs:/sbbs/mods$ jsexec -n archive read /var/log/sbbs/web.sbbs.log.1.gz !JavaScript /sbbs/exec/archive.js line 49: Error: archive_read_open_filename() returned -30: Unrecognized archive format !Module (archive) set exit_code: 1

    I've obviously missed a step but I'm not sure what. Open to suggestions?

    "gz" files are not an archive? "gz" is a compression method and represents a single file compressed.

    eg: "tar.gz" is a tar file (an archive), but its been compressed by "gz".


    ...����

    ---
    � Synchronet � AnsiTEX bringing back videotex but with ANSI
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to nelgin on Sat Oct 3 17:13:21 2026
    Re: Adding supported_formats to Archive
    By: nelgin to Digital Man on Sat Oct 03 2026 03:50 am

    I'm wanting to add .gz files as supported types for Archive.

    I added gz as a supported type in scfg > File Options

    $ jsexec -n -r 'Archive.supported_formats.forEach(function(f){ print(f); })' zip
    7z
    tgz
    gz

    You're still restricted by what libarchive supports and it doesn't support raw 'gzip' (gz) files.
    https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
    --
    digital man (rob)

    Synchronet "Real Fact" #111:
    Weedpuller "World Of My Own" http://youtu.be/V-gmT5N6kYo
    Norco, CA WX: 105.2�F, 16.0% humidity, 2 mph SSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to deon on Wed Oct 7 02:10:37 2026
    Re: Adding supported_formats to Archive
    By: deon to nelgin on Sun Oct 04 2026 09:42:25

    "gz" files are not an archive? "gz" is a compression method and represents a single file compressed.

    Tell me something I don't know. libarchive also says it supports .gz format.

    ---
    � Synchronet � End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)