[[PATCH setup topic/libsolv] 1/2] packagedb::removeEmptyCategories: Don't remove "Base"
Ken Brown
kbrown@cornell.edu
Sat Oct 28 12:29:00 GMT 2017
This can be empty if no setup.ini files are found. Removing it causes
setup to hang.
---
package_db.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package_db.cc b/package_db.cc
index ac9387c..b104073 100644
--- a/package_db.cc
+++ b/package_db.cc
@@ -596,7 +596,7 @@ packagedb::removeEmptyCategories()
{
for (packagedb::categoriesType::iterator n = packagedb::categories.begin();
n != packagedb::categories.end(); ++n)
- if (!n->second.size())
+ if (!n->second.size() && n->first != "Base")
{
Log (LOG_BABBLE) << "Removing empty category " << n->first << endLog;
packagedb::categories.erase (n++);
--
2.14.2
More information about the Cygwin-apps
mailing list