summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/opie-oipkg.control2
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp8
-rw-r--r--noncore/unsupported/oipkg/pmipkg.h1
3 files changed, 2 insertions, 9 deletions
diff --git a/noncore/unsupported/oipkg/opie-oipkg.control b/noncore/unsupported/oipkg/opie-oipkg.control
index 1cff44e..ff1c6ca 100644
--- a/noncore/unsupported/oipkg/opie-oipkg.control
+++ b/noncore/unsupported/oipkg/opie-oipkg.control
@@ -1,9 +1,9 @@
1Files: bin/oipkg apps/Settings/oipkg.desktop pics/oipkg/* 1Files: bin/oipkg apps/Settings/oipkg.desktop pics/oipkg/*
2Priority: optional 2Priority: optional
3Section: opie/settings 3Section: opie/settings
4Maintainer: Patrick S. Vogt <tille@almana.ch> 4Maintainer: Patrick S. Vogt <tille@almana.ch>
5Architecture: arm 5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION 6Version: $QPE_VERSION-$SUB_VERSION
7Depends: opie-base ($QPE_VERSION), ipkg (>0.9) 7Depends: opie-base ($QPE_VERSION), ipkg (>0.99.20)
8Description: Opie Projects advanced gui ipkg installer 8Description: Opie Projects advanced gui ipkg installer
9 A GUI front-end to ipkg for the Opie environment. 9 A GUI front-end to ipkg for the Opie environment.
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index 71e9b88..2ed86ee 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -30,25 +30,25 @@
30#include <qpushbutton.h> 30#include <qpushbutton.h>
31#include <qlayout.h> 31#include <qlayout.h>
32 32
33#include <stdlib.h> 33#include <stdlib.h>
34#include <unistd.h> 34#include <unistd.h>
35 35
36#include "mainwindow.h" 36#include "mainwindow.h"
37 37
38 38
39//#define OPROCESS 39//#define OPROCESS
40 40
41PmIpkg::PmIpkg( PackageManagerSettings* s, QWidget* p, const char * name, WFlags f ) 41PmIpkg::PmIpkg( PackageManagerSettings* s, QWidget* p, const char * name, WFlags f )
42 : QObject ( p ), shellWarning(true) 42 : QObject ( p )
43{ 43{
44 settings = s; 44 settings = s;
45 runwindow = new RunWindow( p, name, true, f ); 45 runwindow = new RunWindow( p, name, true, f );
46#ifdef OPROCESS 46#ifdef OPROCESS
47 ipkgProcess = new OProcess(); 47 ipkgProcess = new OProcess();
48 connect ( ipkgProcess, SIGNAL(receivedStdout(OProcess*,char*,int)), 48 connect ( ipkgProcess, SIGNAL(receivedStdout(OProcess*,char*,int)),
49 this, SLOT(getIpkgOutput(OProcess*,char*,int))); 49 this, SLOT(getIpkgOutput(OProcess*,char*,int)));
50 50
51 connect ( ipkgProcess, SIGNAL(receivedStderr(OProcess*,char*,int)), 51 connect ( ipkgProcess, SIGNAL(receivedStderr(OProcess*,char*,int)),
52 this, SLOT(getIpkgOutput(OProcess*,char*,int))); 52 this, SLOT(getIpkgOutput(OProcess*,char*,int)));
53 installDialog = 0; 53 installDialog = 0;
54#endif 54#endif
@@ -147,30 +147,24 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest )
147 { 147 {
148 lineStr = line; 148 lineStr = line;
149 lineStr=lineStr.left(lineStr.length()-1); 149 lineStr=lineStr.left(lineStr.length()-1);
150 //Configuring opie-oipkg...Done 150 //Configuring opie-oipkg...Done
151 if (lineStr.contains("Done")) ret = true; 151 if (lineStr.contains("Done")) ret = true;
152 if (lineStr!=lineStrOld) 152 if (lineStr!=lineStrOld)
153 out(lineStr); 153 out(lineStr);
154 lineStrOld = lineStr; 154 lineStrOld = lineStr;
155 qApp->processEvents(); 155 qApp->processEvents();
156 } 156 }
157 } 157 }
158 pclose(fp); 158 pclose(fp);
159 if (!ret && shellWarning)
160 {
161 shellWarning = false;
162 QMessageBox::critical( runwindow, tr("install failure"),
163 tr("<p>Did you start me from the command line?</p>"));
164 }
165#endif 159#endif
166 //out( "Finished!"); 160 //out( "Finished!");
167 pvDebug(2,QString(ret?"success\n":"failure\n")); 161 pvDebug(2,QString(ret?"success\n":"failure\n"));
168 return ret; 162 return ret;
169} 163}
170 164
171void PmIpkg::makeLinks(Package *pack) 165void PmIpkg::makeLinks(Package *pack)
172{ 166{
173 pvDebug( 2, "PmIpkg::makeLinks "+ pack->name()); 167 pvDebug( 2, "PmIpkg::makeLinks "+ pack->name());
174 QString pn = pack->name(); 168 QString pn = pack->name();
175 linkPackage( pack->packageName(), pack->dest() ); 169 linkPackage( pack->packageName(), pack->dest() );
176} 170}
diff --git a/noncore/unsupported/oipkg/pmipkg.h b/noncore/unsupported/oipkg/pmipkg.h
index 662800a..c84acfa 100644
--- a/noncore/unsupported/oipkg/pmipkg.h
+++ b/noncore/unsupported/oipkg/pmipkg.h
@@ -44,25 +44,24 @@ public slots:
44 void doIt(); 44 void doIt();
45 void install(); 45 void install();
46 void remove(); 46 void remove();
47 void installFile(const QString &fileName, const QString &dest=""); 47 void installFile(const QString &fileName, const QString &dest="");
48 void removeFile(const QString &fileName, const QString &dest=""); 48 void removeFile(const QString &fileName, const QString &dest="");
49 void createLinks( const QString &dest ); 49 void createLinks( const QString &dest );
50 void removeLinks( const QString &dest ); 50 void removeLinks( const QString &dest );
51 51
52//private slots: 52//private slots:
53 void getIpkgOutput(OProcess *proc, char *buffer, int buflen); 53 void getIpkgOutput(OProcess *proc, char *buffer, int buflen);
54 54
55private: 55private:
56 bool shellWarning;
57 OProcess *ipkgProcess; 56 OProcess *ipkgProcess;
58 PackageManagerSettings* settings; 57 PackageManagerSettings* settings;
59 RunWindow *runwindow; 58 RunWindow *runwindow;
60 InstallDialog *installDialog; 59 InstallDialog *installDialog;
61 QList<Package> to_remove; 60 QList<Package> to_remove;
62 QList<Package> to_install; 61 QList<Package> to_install;
63 void makeLinks(Package*); 62 void makeLinks(Package*);
64 void linkPackage( QString, QString ); 63 void linkPackage( QString, QString );
65 void processLinkDir( QString , QString ); 64 void processLinkDir( QString , QString );
66 bool runIpkg(const QString& args, const QString& dest="" ); 65 bool runIpkg(const QString& args, const QString& dest="" );
67 void out( QString ); 66 void out( QString );
68 QStringList* getList( QString, QString ); 67 QStringList* getList( QString, QString );