summaryrefslogtreecommitdiff
authortille <tille>2002-05-31 12:11:02 (UTC)
committer tille <tille>2002-05-31 12:11:02 (UTC)
commit40eac37ff82dd4499a95adb786eb063fd0b81584 (patch) (unidiff)
treedbcfe08a966ed02575897a722ddaa05b2450d7c6
parentb0c81bac3828ed8b5a5f03e1e3910c4722c6689a (diff)
downloadopie-40eac37ff82dd4499a95adb786eb063fd0b81584.zip
opie-40eac37ff82dd4499a95adb786eb063fd0b81584.tar.gz
opie-40eac37ff82dd4499a95adb786eb063fd0b81584.tar.bz2
parses "not-installed" from /usr/lib/ipkg/list
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/TODO3
-rw-r--r--noncore/unsupported/oipkg/package.cpp10
2 files changed, 11 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/TODO b/noncore/unsupported/oipkg/TODO
index b92cbb0..e7b017c 100644
--- a/noncore/unsupported/oipkg/TODO
+++ b/noncore/unsupported/oipkg/TODO
@@ -1,4 +1,5 @@
1* check for networt before installing from network
1* Settings Class 2* Settings Class
2* parse "to install" and "to remove" from status 3* parse "to install" and "to remove" from status
3* install local file dialog 4* install local file dialog
4* qcop 5* qcop
@@ -8,5 +9,5 @@
8* create dest if it does not exist 9* create dest if it does not exist
9* allow reinstalling 10* allow reinstalling
10* different types of filters and searches 11* different types of filters and searches
11 i.e. name, desc, files etc 12 i.e. name, desc, files etc
12* display new list after update \ No newline at end of file 13* display new list after update
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index bfb48b3..4a09b40 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -131,9 +131,17 @@ QString Package::installName()
131} 131}
132 132
133bool Package::installed() 133bool Package::installed()
134{ 134{
135 if (_status.contains("installed")) return true; 135 if (_status.contains("installed"))
136 {
137 if (_status.contains("not-installed"))
138 {
139 _toProcess = true;
140 return false;
141 }
142 else return true;
143 }
136 else 144 else
137 if (_versions) 145 if (_versions)
138 { 146 {
139 QDictIterator<Package> other( *_versions ); 147 QDictIterator<Package> other( *_versions );