Diffstat (limited to 'noncore/unsupported/oipkg/packagelistremote.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistremote.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistremote.cpp b/noncore/unsupported/oipkg/packagelistremote.cpp index e37f256..bb29e80 100644 --- a/noncore/unsupported/oipkg/packagelistremote.cpp +++ b/noncore/unsupported/oipkg/packagelistremote.cpp | |||
@@ -24,26 +24,26 @@ void 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 | ||
29 | void PackageListRemote::update() | 29 | void PackageListRemote::update() |
30 | { | 30 | { |
31 | pvDebug(2,"PackageListRemote::update"); | 31 | pvDebug(2,"PackageListRemote::update"); |
32 | if (searchString.isEmpty()) return; | 32 | if (searchString.isEmpty()) return; |
33 | int r=0; | 33 | int r=0; |
34 | QString cmd = "wget"; | 34 | QString cmd = "wget"; |
35 | QString redirect = "/tmp/oipkg.query"; | 35 | QString redirect = "/tmp/oipkg.query"; |
36 | 36 | ||
37 | // use file for output | 37 | // use file for output |
38 | cmd += " --output-document="+redirect; | 38 | cmd += " --output-document="+redirect; |
39 | //http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package§ion= | 39 | //http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package§ion= |
40 | QString server="http://ipkgfind.handhelds.org/"; | 40 | QString server="http://ipkgfind.handhelds.org/"; |
41 | cmd += " \""+server+"/packages.phtml"; | 41 | cmd += " \""+server+"/packages.phtml"; |
42 | cmd += "?format=pda&searchtype=package§ion="; | 42 | cmd += "?format=pda&searchtype=package§ion="; |
43 | cmd += "&query="+searchString; | 43 | cmd += "&query="+searchString; |
44 | cmd += "\""; | 44 | cmd += "\""; |
45 | 45 | ||
46 | pvDebug(4,"search :"+cmd); | 46 | pvDebug(4,"search :"+cmd); |
47 | r = system(cmd.latin1()); | 47 | r = system(cmd.latin1()); |
48 | readFileEntries( redirect ); | 48 | readFileEntries( redirect, "remote" ); |
49 | } | 49 | } |