From e5165e1c5eb489f3f318045715afec5a930e811a Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Tue, 27 Dec 2022 19:23:33 +0100 Subject: [PATCH] overwrite debug package instead of skipping --- utils.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils.go b/utils.go index 9ce82fc..03c4112 100644 --- a/utils.go +++ b/utils.go @@ -358,16 +358,16 @@ func movePackagesLive(fullRepo string) error { debugPkgs++ if _, err := os.Stat(filepath.Join(conf.Basedir.Debug, march, filepath.Base(file))); err == nil { - log.Warningf("[MOVE] Existing debug infos for %s, skipping: %s", forPackage, + log.Warningf("[MOVE] Overwrite existing debug infos for %s: %s", forPackage, filepath.Join(conf.Basedir.Debug, march, filepath.Base(file))) - } else { - err = os.Rename(file, filepath.Join(conf.Basedir.Debug, march, filepath.Base(file))) - if err != nil { - return err - } - _ = os.Remove(file + ".sig") - continue } + + err = os.Rename(file, filepath.Join(conf.Basedir.Debug, march, filepath.Base(file))) + if err != nil { + return err + } + _ = os.Remove(file + ".sig") + continue } log.Warningf("[MOVE] Deleting package %s: %v", pkg.Name(), err)