remove file after copy

This commit is contained in:
Giovanni Harting 2024-07-17 06:13:23 +02:00
parent 30cf4e6ecb
commit 3da529478b

View File

@ -205,6 +205,7 @@ func movePackagesLive(fullRepo string) error {
if err != nil {
return err
}
_ = os.Remove(file)
_ = os.Remove(file + ".sig")
continue
}
@ -235,10 +236,12 @@ func movePackagesLive(fullRepo string) error {
if err != nil {
return err
}
_ = os.Remove(file)
err = Copy(file+".sig", filepath.Join(conf.Basedir.Repo, fullRepo, "os", conf.Arch, filepath.Base(file)+".sig"))
if err != nil {
return err
}
_ = os.Remove(file + ".sig")
toAdd = append(toAdd, &ProtoPackage{
DBPackage: dbPkg,