From 61939a3bf8732d71088396a7a8b5f73196442b39 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 12 Jan 2025 18:22:39 +0100 Subject: [PATCH] build: disable dummy upstream profile in favor of ours. --- dists/overwrite | 1 + pkg/prebuild/prepare/overwrite.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dists/overwrite b/dists/overwrite index 767c07312..3ddd83d97 100644 --- a/dists/overwrite +++ b/dists/overwrite @@ -13,6 +13,7 @@ flatpak foliate loupe msedge +mullvad nautilus opera plasmashell diff --git a/pkg/prebuild/prepare/overwrite.go b/pkg/prebuild/prepare/overwrite.go index 6f8951161..1bacd446f 100644 --- a/pkg/prebuild/prepare/overwrite.go +++ b/pkg/prebuild/prepare/overwrite.go @@ -49,9 +49,10 @@ func (p Overwrite) Apply() ([]string, error) { if !dest.Exist() && p.OneFile { continue } - if err := origin.Rename(dest); err != nil { - - return res, err + if origin.Exist() { + if err := origin.Rename(dest); err != nil { + return res, err + } } originRel, err := origin.RelFrom(dest) if err != nil {