Skip to content

Fix Dreamdump path resolution in CLI - #1043

Merged
mnadareski merged 2 commits into
SabreTools:masterfrom
gmipf:fix/cli-dreamdump-path
Oct 13, 2026
Merged

mnadareski merged 2 commits into
SabreTools:masterfrom
gmipf:fix/cli-dreamdump-path

Conversation

@gmipf

@gmipf gmipf commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

In MPF.CLI, the Dreamdump case in BaseFeature resolves DreamdumpPath but assigns the result to AaruPath. DreamdumpPath keeps the raw value from config.json, and DumpEnvironment checks that with File.Exists. A program name on PATH or a ~/ path therefore fails with Error! dreamdump does not exist!, and Dreamdump is never started.

Tested with a stand-in program on Fedora 44, macOS 26.5.2 and Windows 11 (VMs), before and after the change:

  • DreamdumpPath as a program name on PATH (dreamdump.exe on Windows) and as ~/…/dreamdump: "does not exist" before, started after.
  • An absolute DreamdumpPath and a bare RedumperPath: started in both.

Prepared with AI assistance (Claude Opus 5.5) and reviewed before submission.

gmipf and others added 2 commits October 13, 2026 17:06
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@mnadareski mnadareski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll admit, this one is a bit funny that it was missed.

@mnadareski
mnadareski merged commit 8d37a90 into SabreTools:master Oct 13, 2026
1 check passed
gmipf added a commit to gmipf/packaging-media-preservation that referenced this pull request Oct 13, 2026
The hold (d2ba32e) kept every MPF build out while master was broken
(377de1d0 closed the process before reading its exit code, so every dump
ended in InvalidOperationException). The maintainer's fix reads ExitCode
before Close(); Boot 6.1 re-tested exactly c97cda44 (32 cases on Fedora,
Windows and macOS, CLI and GUI, real tools) and released it, and the user
confirmed that master is fixed. The rolling tag points at c97cda44, which is
also master's head, and the content guard from a894683 passes it.

With the hold gone the watcher packages c97cda44, which also carries
SabreTools/MPF#1043 (Dreamdump path resolution in the CLI). The DreamdumpPath
workaround stays in this step on purpose: OBS reads the recipe through a
cache, and removing it before the bump could let OBS rebuild 1064071b
without it. It comes out in the next commit, with a Release bump.

The hold mechanism itself stays in the watcher, idle while the file is absent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gmipf added a commit to gmipf/packaging-media-preservation that referenced this pull request Oct 13, 2026
MPF's CLI stored the resolved Dreamdump path in AaruPath, so a bare
DreamdumpPath failed with "does not exist"; e219926 seeded
/usr/bin/dreamdump instead and migrated our earlier bare seed. The fix,
SabreTools/MPF#1043, is in c97cda44, which mpf now ships (6f7305f), and the
guard turned red on that run as designed: "MPF c97cda44 no longer stores
Dreamdump's resolved path in AaruPath". The user: "dreamdump ist doch
gefixt, entferne den umweg wieder".

Both MPF-DREAMDUMP-PATH-WORKAROUND blocks are gone from all three wrappers
(fedora and opensuse spec, ubuntu mpf-wrapper.in; debian.tar.gz
regenerated). Configs that already hold /usr/bin/dreamdump keep it -- it
resolves, so the wrapper leaves it alone, and MPF runs it. Fedora Release 2;
openSUSE counts on OBS's own release. Debian stays at -1 on purpose
(assemble.sh's per-series rewrite keys off "-1) UNRELEASED"); OBS is only
now building c97cda44-1, so hardly anyone has the copy with the workaround,
and that copy works too.

The guard now checks both directions in the commit we ship: with the
workaround it turns red when the broken form is gone (as before); without
it, red when the broken form comes back (then a bare name fails again;
e219926 is the template). An unreadable file or a missing Dreamdump branch
is red either way.

Red seen before green:
- Wrappers rendered from all three lanes, 6 cases each: 18/18 with this
  commit; the same cases against HEAD's wrappers fail 12 (every bare-seed
  case gets /usr/bin/dreamdump).
- The guard step, extracted from the workflow and run against MPF's real
  BaseFeature.cs at 1064071b (broken) and c97cda44 (fixed), a copy without
  the Dreamdump branch, an empty file and a failing download, with and
  without the workaround: 8/8. A copy whose "broken form is back" branch
  exits 0 fails exactly that case.

Not yet measured: mpf-cli -u dreamdump with the bare name on the installed
package (needs a test VM; next).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants