overwrite debug package instead of skipping

This commit is contained in:
2022-12-27 19:23:33 +01:00
parent 2169cec100
commit e5165e1c5e

View File

@@ -358,9 +358,10 @@ func movePackagesLive(fullRepo string) error {
debugPkgs++ debugPkgs++
if _, err := os.Stat(filepath.Join(conf.Basedir.Debug, march, filepath.Base(file))); err == nil { 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))) filepath.Join(conf.Basedir.Debug, march, filepath.Base(file)))
} else { }
err = os.Rename(file, filepath.Join(conf.Basedir.Debug, march, filepath.Base(file))) err = os.Rename(file, filepath.Join(conf.Basedir.Debug, march, filepath.Base(file)))
if err != nil { if err != nil {
return err return err
@@ -368,7 +369,6 @@ func movePackagesLive(fullRepo string) error {
_ = os.Remove(file + ".sig") _ = os.Remove(file + ".sig")
continue continue
} }
}
log.Warningf("[MOVE] Deleting package %s: %v", pkg.Name(), err) log.Warningf("[MOVE] Deleting package %s: %v", pkg.Name(), err)
_ = os.Remove(file) _ = os.Remove(file)