summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistremote.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistremote.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistremote.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistremote.cpp b/noncore/unsupported/oipkg/packagelistremote.cpp
index ee54fca..e37f256 100644
--- a/noncore/unsupported/oipkg/packagelistremote.cpp
+++ b/noncore/unsupported/oipkg/packagelistremote.cpp
@@ -20,24 +20,25 @@ PackageListRemote::~PackageListRemote()
20{ 20{
21} 21}
22 22
23void PackageListRemote::query(QString s) 23void PackageListRemote::query(QString s)
24{ 24{
25 pvDebug(4,"set query "+s); 25 pvDebug(4,"set query "+s);
26 searchString = s; 26 searchString = s;
27} 27}
28 28
29void PackageListRemote::update() 29void PackageListRemote::update()
30{ 30{
31 pvDebug(2,"PackageListRemote::update"); 31 pvDebug(2,"PackageListRemote::update");
32 if (searchString.isEmpty()) return;
32 int r=0; 33 int r=0;
33 QString cmd = "wget"; 34 QString cmd = "wget";
34 QString redirect = "/tmp/oipkg.query"; 35 QString redirect = "/tmp/oipkg.query";
35 36
36 // use file for output 37 // use file for output
37 cmd += " --output-document="+redirect; 38 cmd += " --output-document="+redirect;
38//http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package&section= 39//http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package&section=
39 QString server="http://ipkgfind.handhelds.org/"; 40 QString server="http://ipkgfind.handhelds.org/";
40 cmd += " \""+server+"/packages.phtml"; 41 cmd += " \""+server+"/packages.phtml";
41 cmd += "?format=pda&searchtype=package&section="; 42 cmd += "?format=pda&searchtype=package&section=";
42 cmd += "&query="+searchString; 43 cmd += "&query="+searchString;
43 cmd += "\""; 44 cmd += "\"";