cmd/fpkg: compare all three store paths
All checks were successful
Tests / Go tests (push) Successful in 34s
Nix / NixOS tests (push) Successful in 3m39s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2024-12-29 17:10:41 +09:00
parent c795293f36
commit 891b3cbde7
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
2 changed files with 5 additions and 3 deletions

View File

@ -40,11 +40,11 @@ type bundleInfo struct {
// allow gpu access within sandbox
GPU bool `json:"gpu"`
// inner nix store path to activate-and-exec script
// store path to activate-and-exec script
Launcher string `json:"launcher"`
// store path to /run/current-system
CurrentSystem string `json:"current_system"`
// home-manager activation package
// store path to home-manager activation package
ActivationPackage string `json:"activation_package"`
}

View File

@ -97,7 +97,9 @@ func actionInstall(args []string) {
if app != bundle {
// do not try to re-install
if app.Launcher == bundle.Launcher {
if app.CurrentSystem == bundle.CurrentSystem &&
app.Launcher == bundle.Launcher &&
app.ActivationPackage == bundle.ActivationPackage {
cleanup()
fmsg.Printf("package %q is identical to local application %q", pkgPath, app.ID)
fmsg.Exit(0)