summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/main.cpp1
-rw-r--r--noncore/unsupported/oipkg/package.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/main.cpp b/noncore/unsupported/oipkg/main.cpp
index f72540c..c579df8 100644
--- a/noncore/unsupported/oipkg/main.cpp
+++ b/noncore/unsupported/oipkg/main.cpp
@@ -1,22 +1,23 @@
1 1
2#include "mainwindow.h" 2#include "mainwindow.h"
3 3
4#include <qpe/qpeapplication.h> 4#include <qpe/qpeapplication.h>
5#include <qstring.h> 5#include <qstring.h>
6//#include <qmessagebox.h> 6//#include <qmessagebox.h>
7int debugLevel; 7int debugLevel;
8 8
9int main( int argc, char ** argv ) 9int main( int argc, char ** argv )
10{ 10{
11 setpgid(0,0);
11 printf("This is oipkg\n"); 12 printf("This is oipkg\n");
12 printf("$Id$\n"); 13 printf("$Id$\n");
13 debugLevel = 2; 14 debugLevel = 2;
14 if (argc > 1) 15 if (argc > 1)
15 { 16 {
16 debugLevel = QString ( argv[1] ).toInt(); 17 debugLevel = QString ( argv[1] ).toInt();
17 qDebug("setting debug level to %i",debugLevel); 18 qDebug("setting debug level to %i",debugLevel);
18 } 19 }
19 QPEApplication a( argc, argv ); 20 QPEApplication a( argc, argv );
20 MainWindow mw; 21 MainWindow mw;
21// if (argc > 2) 22// if (argc > 2)
22 // QMessageBox::information( &mw, "oipkg","While ipkg is working\noipkg is hanging.\nPlease be patient!"); 23 // QMessageBox::information( &mw, "oipkg","While ipkg is working\noipkg is hanging.\nPlease be patient!");
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index 8bbdd77..0cd93bf 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -44,38 +44,40 @@ void Package::init( PackageManagerSettings *s )
44 _versions=0; 44 _versions=0;
45 _version=""; 45 _version="";
46} 46}
47 47
48Package::Package( QStringList pack, PackageManagerSettings *s , QObject *parent, const char *name ) 48Package::Package( QStringList pack, PackageManagerSettings *s , QObject *parent, const char *name )
49 : QObject(parent,name) 49 : QObject(parent,name)
50 { 50 {
51 init(s); 51 init(s);
52 parsePackage( pack ); 52 parsePackage( pack );
53} 53}
54 54
55Package::Package( QString n, PackageManagerSettings *s, QObject *parent, const char *name ) 55Package::Package( QString n, PackageManagerSettings *s, QObject *parent, const char *name )
56 : QObject(parent,name)
56 { 57 {
57 init(s); 58 init(s);
58 if ( !QFile::exists( n ) ) 59 if ( !QFile::exists( n ) )
59 { 60 {
60 _name = QString( n ); 61 _name = QString( n );
61 }else{ 62 }else{
62 pvDebug(4,"remote file: "+n); 63 pvDebug(4,"remote file: "+n);
63 parseIpkgFile( n ); 64 parseIpkgFile( n );
64 _useFileName = true; 65 _useFileName = true;
65 _fileName = QString( n ); 66 _fileName = QString( n );
66 } 67 }
67} 68}
68 69
69Package::Package( Package *pi, QObject *parent, const char *name ) 70Package::Package( Package *pi, QObject *parent, const char *name )
71 : QObject(parent,name)
70{ 72{
71 init(pi->settings); 73 init(pi->settings);
72 copyValues( pi ); 74 copyValues( pi );
73} 75}
74 76
75 77
76void Package::setValue( QString n, QString t ) 78void Package::setValue( QString n, QString t )
77{ 79{
78 if ( n == "Package" ) 80 if ( n == "Package" )
79 { 81 {
80 _name = QString( t ); 82 _name = QString( t );
81 }else if ( n == "Installed-Size" ) 83 }else if ( n == "Installed-Size" )