• TickIT doesn't use the Archive class

    From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sun Feb 26 11:39:27 2023
    reopen https://gitlab.synchro.net/main/sbbs/-/issues/524

    I try to setup a nodelist handler for amiganet, these come in lha formatI have added the archiver and it works ok with the files from the library![imagen](https://gitlab.synchro.net/main/sbbs/uploads/8f6f2659b773ef2ee4f413936f1a02c1/imagen.png)I test on tickit.cfg with both nodelist_handler and file_handler with same results:```[AMYLIST]Dir=amn_amylistSourceAddress=39:943/1@amiganetForceReplace=trueHandler=tickit/nodelist_handler.jsHandlerArg={"domain":"amiganet", "match":"AmyList.l*", "nlmatch":"AmyList.*"};Handler = tickit/file_handler.js;HandlerArg = { "match": "AmyList.l*", "files": [{ "source": "Amylist.*", "destination": "/sbbs/fido/NODELIST.AMIGANET" }]}```it seems that the part of code that tries to detect the archiver is not working for this case``` Object.keys(ctx.sbbsecho.packer).forEach(function(key) { var i; var sig = ''; f.position = ctx.sbbsecho.packer[key].offset; for (i=0; i<ctx.sbbsecho.packer[key].sig.length; i+=2) { sig += format("%02X", f.readBin(1)); if (f.eof) break; } if (sig === ctx.sbbsecho.packer[key].sig) unpack = ctx.sbbsecho.packer[key].unpack; }); f.close(); if (unpack == undefined) { log(LOG_DEBUG, "Unable to identify packer for '"+tic.file+"'"); return false; }```I attach a AmyList.l48 nodelist example that came from my boss.[AmyList.l48](/uploads/4f200dfa9dbe27939d5e68a697ba0a74/AmyList.l48)
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fernando Toledo@1:103/705 to GitLab note in main/sbbs on Sat Feb 17 21:59:22 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/524#note_4867

    I just notice that using this version for LHA (lhasa) on debian:


    ```
    Lhasa v0.3.1 command line LHA tool - Copyright (C) 2011,2012 Simon Howard usage: lha [-]{lvtxe[q{num}][finv]}[w=<dir>] archive_file [file...]
    commands: options:
    l,v List / Verbose List f Force overwrite (no prompt)
    t Test file CRC in archive i Ignore directory path
    x,e Extract from archive n Perform dry run
    p Print to stdout from archive q{num} Quiet mode
    v Verbose
    w=<dir> Specify extract directory
    ```

    the unpack command line at echocfg must be: lha -ew=%s %f
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)