Projects with no parts are always repacked
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
In an application with `always_repack=False`, at least one part is needed to ensure `prime_state_timestamp` is not `None`: https://github.com/canonical/craft-application/blob/109efee05914b24832763335c1d7064af4ed21f5/craft_application/commands/lifecycle.py#L470-L475
### To Reproduce
```bash
cat <<'EOF' >testcraft.yaml
name: temp
version: "0.1"
base: ubuntu@24.04
platforms:
amd64:
EOF
testcraft pack
testcraft pack
cat <<'EOF' >testcraft.yaml
name: temp
version: "0.1"
base: ubuntu@24.04
platforms:
amd64:
parts:
foo:
plugin: nil
EOF
testcraft pack
testcraft pack
```
Expected behaviour: the second and fourth `testcraft pack` calls should print `Already packed: temp-0.1-amd64.testcraft`.
Actual behaviour: only the fourth one does.
### part yaml
```shell
{}
```
### Relevant log output
```shell
:: 2025-08-06 12:49:51.687 Could not find prime state timestamps.
```
Evaluation history
No evaluation history available.