Diffstat (limited to 'noncore/unsupported/oipkg/package.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/package.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp index 1054a1d..3effb73 100644 --- a/noncore/unsupported/oipkg/package.cpp +++ b/noncore/unsupported/oipkg/package.cpp | |||
@@ -395,25 +395,25 @@ bool Package::link() | |||
395 | } | 395 | } |
396 | 396 | ||
397 | void Package::setLink(bool b) | 397 | void Package::setLink(bool b) |
398 | { | 398 | { |
399 | _link = b; | 399 | _link = b; |
400 | } | 400 | } |
401 | 401 | ||
402 | void Package::parseIpkgFile( QString file) | 402 | void Package::parseIpkgFile( QString file) |
403 | { | 403 | { |
404 | // 20020830 | 404 | // 20020830 |
405 | // a quick hack to make oipkg understand the new ipk format | 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 | 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") ) | 407 | if (system("ar pf "+file+" control.tar.gz | tar xfOz - ./control > /tmp/control") != 0) |
408 | { | 408 | { |
409 | //#old tar ipk format | 409 | //#old tar ipk format |
410 | system("tar xzf "+file+" -C /tmp"); | 410 | system("tar xzf "+file+" -C /tmp"); |
411 | system("tar xzf /tmp/control.tar.gz -C /tmp"); | 411 | system("tar xzf /tmp/control.tar.gz -C /tmp"); |
412 | } | 412 | } |
413 | QFile f("/tmp/control"); | 413 | QFile f("/tmp/control"); |
414 | if ( f.open(IO_ReadOnly) ) | 414 | if ( f.open(IO_ReadOnly) ) |
415 | { | 415 | { |
416 | QTextStream t( &f ); | 416 | QTextStream t( &f ); |
417 | QStringList pack; | 417 | QStringList pack; |
418 | while ( !t.eof() ) | 418 | while ( !t.eof() ) |
419 | { | 419 | { |