summaryrefslogtreecommitdiff
authortille <tille>2002-07-06 14:02:05 (UTC)
committer tille <tille>2002-07-06 14:02:05 (UTC)
commit2d2eda28dd68bb989c3af8bb7f95d8255e886dda (patch) (unidiff)
tree0552811f070bed9a0ebd5faa53ffd93a32e3b7e9
parentac76e913d1930cdf7903fed344bd7bcc1b7545c0 (diff)
downloadopie-2d2eda28dd68bb989c3af8bb7f95d8255e886dda.zip
opie-2d2eda28dd68bb989c3af8bb7f95d8255e886dda.tar.gz
opie-2d2eda28dd68bb989c3af8bb7f95d8255e886dda.tar.bz2
query killefiz.de
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistremote.cpp29
1 files changed, 21 insertions, 8 deletions
diff --git a/noncore/unsupported/oipkg/packagelistremote.cpp b/noncore/unsupported/oipkg/packagelistremote.cpp
index b4b6979..39bbac2 100644
--- a/noncore/unsupported/oipkg/packagelistremote.cpp
+++ b/noncore/unsupported/oipkg/packagelistremote.cpp
@@ -12,4 +12,5 @@
12 12
13#include <qstring.h> 13#include <qstring.h>
14#include <qfile.h>
14#include <stdlib.h> 15#include <stdlib.h>
15#include <unistd.h> 16#include <unistd.h>
@@ -41,18 +42,30 @@ void PackageListRemote::update()
41 if (searchString.isEmpty()) return; 42 if (searchString.isEmpty()) return;
42 int r=0; 43 int r=0;
43 QString cmd = "wget"; 44 QString cmdQuery;
45 QString cmdWget = "wget";
44 QString redirect = "/tmp/oipkg.query"; 46 QString redirect = "/tmp/oipkg.query";
45 47
46 // use file for output 48 // use file for output
47 cmd += " --output-document="+redirect; 49 cmdWget += " --output-document="+redirect;
48//http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package&section= 50//http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package&section=
49 QString server="http://ipkgfind.handhelds.org/"; 51 QString server="http://ipkgfind.handhelds.org/";
50 cmd += " \""+server+"/packages.phtml"; 52 cmdQuery = cmdWget+" \""+server+"packages.phtml?";
51 cmd += "?format=pda&searchtype=package&section="; 53 cmdQuery += "format=pda&searchtype=package&section=";
52 cmd += "&query="+searchString; 54 cmdQuery += "&query="+searchString;
53 cmd += "\""; 55 cmdQuery += "\"";
54 56
55 pvDebug(4,"search :"+cmd); 57 pvDebug(4,"search :"+cmdQuery);
56 r = system(cmd.latin1()); 58 r = system(cmdQuery.latin1());
59 readFileEntries( redirect, "remote" );
60
61//[15:30:38] <killefiz> http://killefiz.de/zaurus/oipkg.php?query=puzzle
62 QFile::remove(redirect);
63 server="http://killefiz.de/";
64 cmdQuery = cmdWget+" \""+server+"zaurus/oipkg.php?";
65 cmdQuery += "query="+searchString;
66 cmdQuery += "\"";
67
68 pvDebug(4,"search :"+cmdQuery);
69 r = system(cmdQuery.latin1());
57 readFileEntries( redirect, "remote" ); 70 readFileEntries( redirect, "remote" );
58} 71}