Fix null pointer when dropping a multi dist published repo.

Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
This commit is contained in:
Christoph Fiehe committed 2024-12-02 15:09:46 +01:00
1 parent b7e91f0994
commit 7d9f020ae8
1 file changed
+5
+5
View File
@@ -1660,6 +1660,11 @@ func (collection *PublishedRepoCollection) Remove(publishedStorageProvider aptly
return err
}
err = collection.LoadComplete(repo, collectionFactory)
if err != nil {
return err
}
removePrefix := true
removePoolComponents := repo.Components()
cleanComponents := []string{}