-rw-r--r-- | noncore/unsupported/oipkg/packagelistremote.cpp | 29 |
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 @@ -13,2 +13,3 @@ #include <qstring.h> +#include <qfile.h> #include <stdlib.h> @@ -42,3 +43,4 @@ void PackageListRemote::update() int r=0; - QString cmd = "wget"; + QString cmdQuery; + QString cmdWget = "wget"; QString redirect = "/tmp/oipkg.query"; @@ -46,12 +48,23 @@ void PackageListRemote::update() // use file for output - cmd += " --output-document="+redirect; + cmdWget += " --output-document="+redirect; //http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package§ion= QString server="http://ipkgfind.handhelds.org/"; - cmd += " \""+server+"/packages.phtml"; - cmd += "?format=pda&searchtype=package§ion="; - cmd += "&query="+searchString; - cmd += "\""; + cmdQuery = cmdWget+" \""+server+"packages.phtml?"; + cmdQuery += "format=pda&searchtype=package§ion="; + cmdQuery += "&query="+searchString; + cmdQuery += "\""; - pvDebug(4,"search :"+cmd); - r = system(cmd.latin1()); + pvDebug(4,"search :"+cmdQuery); + r = system(cmdQuery.latin1()); + readFileEntries( redirect, "remote" ); + +//[15:30:38] <killefiz> http://killefiz.de/zaurus/oipkg.php?query=puzzle + QFile::remove(redirect); + server="http://killefiz.de/"; + cmdQuery = cmdWget+" \""+server+"zaurus/oipkg.php?"; + cmdQuery += "query="+searchString; + cmdQuery += "\""; + + pvDebug(4,"search :"+cmdQuery); + r = system(cmdQuery.latin1()); readFileEntries( redirect, "remote" ); |