summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelist.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/unsupported/oipkg/packagelist.cpp b/noncore/unsupported/oipkg/packagelist.cpp
index 998dae9..edb9cc5 100644
--- a/noncore/unsupported/oipkg/packagelist.cpp
+++ b/noncore/unsupported/oipkg/packagelist.cpp
@@ -150,22 +150,21 @@ void PackageList::setSubSection( QString ssec )
void PackageList::updateSections( Package* pack )
{
QString s = pack->section();
if ( s.isEmpty() || s == "") return;
- if ( sections.contains(s) ) return;
- sections += s;
+ if ( !sections.contains(s) ) sections += s;
QString ss = pack->subSection();
if ( ss.isEmpty() || ss == "" ) return;
if ( !subSections[s] ) {
subSections.insert( s, new QStringList() );
QStringList *subsecs = subSections[s];
*subsecs += "All";
}
QStringList *subsecs = subSections[s];
- *subsecs += ss;
- if ( !subSections["All"] ) subSections.insert( "All", new QStringList() );
- subsecs = subSections["All"];
- *subsecs += ss;
+ if ( !subsecs->contains(ss) ) *subsecs += ss;
+// if ( !subSections["All"] ) subSections.insert( "All", new QStringList() );
+// subsecs = subSections["All"];
+// *subsecs += ss;
}
void PackageList::readFileEntries( QString filename, QString dest )