summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg') (more/less context) (ignore 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
@@ -151,8 +151,7 @@ void PackageList::updateSections( Package* pack )
151{ 151{
152 QString s = pack->section(); 152 QString s = pack->section();
153 if ( s.isEmpty() || s == "") return; 153 if ( s.isEmpty() || s == "") return;
154 if ( sections.contains(s) ) return; 154 if ( !sections.contains(s) ) sections += s;
155 sections += s;
156 QString ss = pack->subSection(); 155 QString ss = pack->subSection();
157 if ( ss.isEmpty() || ss == "" ) return; 156 if ( ss.isEmpty() || ss == "" ) return;
158 if ( !subSections[s] ) { 157 if ( !subSections[s] ) {
@@ -161,10 +160,10 @@ void PackageList::updateSections( Package* pack )
161 *subsecs += "All"; 160 *subsecs += "All";
162 } 161 }
163 QStringList *subsecs = subSections[s]; 162 QStringList *subsecs = subSections[s];
164 *subsecs += ss; 163 if ( !subsecs->contains(ss) ) *subsecs += ss;
165 if ( !subSections["All"] ) subSections.insert( "All", new QStringList() ); 164// if ( !subSections["All"] ) subSections.insert( "All", new QStringList() );
166 subsecs = subSections["All"]; 165// subsecs = subSections["All"];
167 *subsecs += ss; 166// *subsecs += ss;
168} 167}
169 168
170 169