summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/package.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index 7aaa240..1054a1d 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -58,3 +58,3 @@ Package::Package( QStringList pack, PackageManagerSettings *s , QObject *parent,
58 : QObject(parent,name) 58 : QObject(parent,name)
59 { 59{
60 init(s); 60 init(s);
@@ -65,3 +65,3 @@ Package::Package( QString n, PackageManagerSettings *s, QObject *parent, const c
65 : QObject(parent,name) 65 : QObject(parent,name)
66 { 66{
67 init(s); 67 init(s);
@@ -120,3 +120,3 @@ void Package::setValue( QString n, QString t )
120 // { 120 // {
121 // 121//
122 //}else if ( n == "MD5Sum") 122 //}else if ( n == "MD5Sum")
@@ -387,3 +387,3 @@ void Package::setOn()
387{ 387{
388 _toProcess = true; 388 _toProcess = true;
389} 389}
@@ -403,4 +403,11 @@ void Package::parseIpkgFile( QString file)
403{ 403{
404 system("tar xzf "+file+" -C /tmp"); 404// 20020830
405 system("tar xzf /tmp/control.tar.gz -C /tmp"); 405// a quick hack to make oipkg understand the new ipk format
406// neu: ar pf PACKAGE control.tar.gz | tar xfOz - ./control > /tmp/control
407 if (! system("ar pf "+file+" control.tar.gz | tar xfOz - ./control > /tmp/control") )
408 {
409//#old tar ipk format
410 system("tar xzf "+file+" -C /tmp");
411 system("tar xzf /tmp/control.tar.gz -C /tmp");
412 }
406 QFile f("/tmp/control"); 413 QFile f("/tmp/control");
@@ -417,3 +424,3 @@ void Package::parseIpkgFile( QString file)
417 } 424 }
418 425
419} 426}
@@ -438,3 +445,3 @@ QDict<QString>* Package::getFields()
438{ 445{
439 return &_values; 446 return &_values;
440} 447}