Logo10.3.177.165 
  News  Recent  Stats  Forums  Discord  GitHub  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   BBCode test
 
 Content
   List Content
 
 Projects
   All projects
  View project Git Log
[View project][View on GitHub]
DateCommit  Author  Project  
20261115 14:35  cb325c7  orgin  Arcedit  
os4depot_submit.py: follow the readme page's Replace file link

The OS4Depot file id changes with every replace, so the script no longer
stores it: it opens the readme page, follows the 'Replace file' link and
sends to that form's action with its f_replaces value.
20261115 08:16  2d78c73  orgin  Arcedit  
OS4Depot readme: author and submitter Björn Hagström

As on the published OS4Depot entry. tools/os4depot_submit.py passes the
form values to curl as Latin-1 bytes (the form is ISO-8859-15), so the
name arrives correctly.
20261115 08:15  3fd33a7  orgin  Arcedit  
tools/os4depot_submit.py: OS4Depot upload, replacing the published file

arcedit is published on OS4Depot (utility/archive/arcedit.lha, id 14270).
New versions are submitted through the replace form
(?function=submit&replace=14270) with f_replaces set. Dry run by
default; --send needs OS4DEPOT_EMAIL (sent hidden). Reads dist/arcedit.lha
and build/stage/arcedit.readme from tools/make_lha.sh.
20261115 05:37  8f9b990  orgin  Arcedit  
WORKDIR: temporary files in another drawer; 1.1

WORKDIR/K names an existing drawer for the temporary files (the new
archive, TGZ's unpacked tar). The finished archive is then moved next to
the old one (a rename, or a copy when the work drawer is on another
volume) before it replaces it, so a failure still leaves the archive as it
was. Free space is checked in the work drawer and, for the finished
archive, in the archive's drawer. A missing work drawer, or a file instead
of a drawer, is an "Error:" line with rc 10. WORKDIR "" or no WORKDIR keeps
the old behaviour; INFO ignores it.

Tests: same volume, another file system (/dev/shm), TGZ, missing drawer,
not a drawer, empty value, INFO (249 pass). Checked in the OS4 guest with
WORKDIR RAM: for archives on Work:.
20261115 05:23  b039e0d  orgin  Arcedit  
LHA PROTECT drops the Unix permission header; 1.0.1

An entry made by LHa for UNIX carries a Unix permission header (0x50).
xadmaster and lhasa take the protection from it whenever it is there, so
the Amiga bits PROTECT set stayed invisible to them (found through Filer's
archive view). PROTECT now removes that header; owner and times stay.
Test: lhasa lists the entry as [Amiga] after PROTECT.

The OS4Depot description in the readme is the shortened one (50 chars).
20261115 02:13  21ef862  orgin  Arcedit  
OS4 scenario tests pass; AmigaOS 4 release package

OS4 scenarios (tests/os4/run_os4.py): all 86 checks pass: Linux and OS4
give identical archives, Ctrl-C, locked archive, write protected and full
volume, 30 character FFS name, low memory, Work: and SYS:.

Fixes they found:
- an archive that exists but can't be opened (locked) is reported with
  the system's reason instead of "doesn't exist" (plat_not_found)
- gzip: a stored name is written only when the original had one or it
  was set, not one made from the archive's own file name (the result
  depended on what the file was called)
- every out of memory error returns 20, as documented

Test tools: memeater takes all private memory and gives a set amount
back (on a 2 GB machine the private address space runs out first);
TINY: is a complete classic mountlist entry.

Release: package/ (OS4Depot readme, Installer script, arcedit.txt,
icons saved by icon.library from tools/make_icons.py), tools/make_lha.sh
builds dist/arcedit.lha. The Install icon's LOGFILE tooltype keeps the
Novice log out of C:.
20261114 23:18  1d46ffd  orgin  Arcedit  
OS4 scenario tests (prepared); in-use archives reported properly

- tests/os4/run_os4.py: Linux vs OS4 results byte for byte, Ctrl-C,
  locked archive, write-protected and full volume (a 1 MB RAM drive),
  30 character names on FFS, low memory, Work:/System: volumes; guest
  helpers memeater.c and holdlock.c.
- An archive that exists but can't be opened (in use, no access) is
  reported with the system's reason instead of "doesn't exist".
20261114 23:10  3a04379  orgin  Arcedit  
Corpus test on real archives; old tar in gzip; Latin-1 names

- tests/corpus.py: every edit on a directory of real archives, each
  result tested and extracted with the format's reference tool (Lhasa,
  unzip, GNU tar, gzip, unar) and compared file by file. 218 archives
  from Aminet and OS4Depot pass; 20 of them also edited by the OS4 build
  and tested with LhA 2.15 in AmigaOS 4.
- Found by it: .tar.gz with old (pre-POSIX) tar headers were taken for
  plain gzip files.
- Names: archives hold Latin-1. The Linux build converts UTF-8 names
  (command line, list files, file system) for new names, and a UTF-8
  name that matches nothing is tried again as Latin-1.
20261114 22:48  2fee7c4  orgin  Arcedit  
Fuzz testing; fixes it found; short temp names; Ctrl-C

- tests/fuzz.py + make fuzz: damaged archives (bit flips, truncation,
  overwritten size fields) against an AddressSanitizer/UBSan build; no
  crash, hang, leak or bad return code, original unchanged on errors,
  no temp files left, results reopen. 210000 runs clean.
- Fixed from fuzzing: tar extension-header names leaked on damaged
  archives (and a damaged size could ask for gigabytes); a damaged first
  LHA header was taken for a self-extracting prefix (now only after an
  Amiga or MS-DOS executable); one shared LHA header test for probe and
  reader; empty LHA and TAR archives (everything deleted) open again.
- Temporary files have short unique names (aeXXXXXXXX.tmp) in the
  archive's drawer, so long archive names work on FFS.
- Ctrl-C stops before the archive is replaced: temp removed, archive
  unchanged, "Error: interrupted".
20261114 22:15  fecee10  orgin  Arcedit  
Fast INFO, checks before writing, Error: lines; standalone tool

- INFO reads only the archive's first bytes (gzip: unpacks just the
  start to tell TGZ from GZIP) and checks that the archive can be
  replaced; an archive that can't lists no operations.
- Before writing: write access (delete protection, write-protected
  volume), files over 4 GB, free space for the new archive (and the
  unpacked tar of a TGZ). Volumes that report themselves full (RAM:)
  skip the space check.
- Every failure prints one last line "Error: ..." (return code 10 or
  20), warnings "Warning: ..." (5); the archive is unchanged on errors.
- README: arcedit is a standalone public domain tool for AmigaOS 4 and
  Linux; how other programs use INFO and the error line. No references
  to a particular program.
Open Amiga project website, Created in 2008 by Björn Hagström