Repository navigation
packing/nup: preserve numeric version labels without control data - #3070
Closed
thehobbit85 wants to merge 1 commit into
Closed
thehobbit85 wants to merge 1 commit into
thehobbit85 wants to merge 1 commit into
Conversation
Fixes seedds#2902. Co-authored-by: Saqib Razaq <232577050+saqibrazaq-dt@users.noreply.github.com>
seedds
added a commit
that referenced
this pull request
Nov 20, 2026
A NUP can carry a display version without carrying control data. Use its selected package's numeric label in the survey, the derived profile, and the app after the applicable control data and registered version. Read the base NACP for the app even when only the update is extracted. Keep Ocarina of Time's registered runtime row as it is. Checked the real Mario Kart World 1.8.0 NUP and both version fields in signed Mac app fixtures. Focused packing, unsigned IPA, and docs tests passed. Python lint matches the findings on main. Combines PR #2822 and PR #3070 and addresses issue #2902. Co-authored-by: UserDerezzed <25561419+UserDerezzed@users.noreply.github.com> Co-authored-by: Eliran Zach <4012041+thehobbit85@users.noreply.github.com> Co-authored-by: Saqib Razaq <232577050+saqibrazaq-dt@users.noreply.github.com>
Owner
|
Thanks for implementing and testing numeric label validation. The coordinated fix landed with #2822 in f3f73320. The survey, derived profile, and app now share one parser for the selected package’s label. I verified |
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Fixes #2902.
A NUP with no NACP and an unregistered main build discarded its numeric version label, leaving the derived build row and
GetDisplayVersionas?. Preserve the selected package's numeric label and use it after control metadata and an exact registered build version. The survey and app version use the same fallback.The label must contain one to three ASCII numeric components, with an optional
v, and fit the console's 15-byte version payload. Arbitrary text and invalid labels are ignored, stale sidecars are removed, and an update never inherits the base package's label. No game-specific patch is added.This adapts Saqib Razaq's diagnosis and proposal in the issue, with bounded parsing and selected-package isolation. The durable finding is in the packing reference; the corresponding Mario Kart World note links it.
Checked
On Apple M2 Max, macOS 26.6 (25G5028f), arm64 Python 3.14.6:
?result. Afterward,python3 -m unittest dm.tools.tests.test_nsp_nup dm.tools.tests.test_nsp_alias: 58 tests pass.python3 -m unittest discover -s dm/tools/tests -p 'test_nsp_*.py': 444 tests pass, including survey, extraction reuse, derived profiles and Mac-app packing.test_docs: 6 pass;test_lint_pythonpasses. Symptom index regenerated;git diff --checkclean.boot_macsubprocess option typing. Comparison normalized line numbers; this change adds no finding.t_gl_importstest_lod_biasassertion at line 466 failed. No graphics implementation or test input used by that target differs from based43d4355; this is an incomplete graphics-suite result, not a pass.scripts/regress.py check --baseline d43d4355 --games 0400C3F00006E000,010015100B514000cannot run: no configured regression root or local game builds. Mario Kart World exercises the reported unregistered NUP path; Wonder exercises the existing exact-build fallback. No gameplay, game shader rebuild, iOS runtime, or other-game regression is claimed.Before publication I rechecked current main, all 2,064 open/draft/closed/merged PRs, and the issue timeline. Open #2879 corrects NUP metadata type numbering but does not preserve version labels; its changes are not included here. No existing PR was modified.
Docs