Skip to content

Capone: send the OS family as an eighth field (#43) - #44

Merged
mastacontrola merged 1 commit into
mainfrom
feat/capone-os-family
Nov 10, 2026
Merged

mastacontrola merged 1 commit into
mainfrom
feat/capone-os-family

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Closes #43.

Problem

Capone gives FOS each image as path|osid|type|parttype|format|storage|storageip. The line carries no OS family, so FOS falls back to its built-in osid table, and a Capone image whose osid FOS does not know stops the listing.

Change

  • CaponeTasking::imageLine() builds the line, and imagelookup base64-encodes it as before.
  • The line gains an eighth field: the image's OS family from Image::getOSFamily() (fogproject #2085). A method_exists guard sends an empty field on a core without that method, so the plugin still works with any fogproject 1.6.
  • Fields 1–7 do not change. An older FOS reads only $1–$7, and ignores the new field. FOS reads it from FOGProject/fos (companion PR).
  • No plugin version bump, as in every prior release.

Test

  • New tests/capone-image-line.test.php: the full line for an image with a family, and an empty eighth field for an image class with no getOSFamily(). It failed before the change. It also fails when the guard is removed and when the eighth field is dropped (both checked by mutation).
  • sh tests/run-all.sh: 22 passed, 0 failed.

🤖 Generated with Claude Code

The Capone image line now ends with Image::getOSFamily(), so FOS can
place an osid it has no table entry for. Fields 1-7 keep their order;
an old FOS ignores the eighth. The field is empty on a core without
getOSFamily() (method_exists guard), so the plugin still works on any
fogproject 1.6. The line building moves to a static imageLine() so a
test can drive it. No plugin version bump.

Refs #43

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mastacontrola
mastacontrola merged commit 2a9f12c into main Nov 10, 2026
2 checks passed
@mastacontrola
mastacontrola deleted the feat/capone-os-family branch November 10, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send the OS family through Capone so a new osid works there too

1 participant