summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp19
-rw-r--r--noncore/settings/aqpkg/ipkg.h1
2 files changed, 17 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp
index 8de3c48..dad34b0 100644
--- a/noncore/settings/aqpkg/ipkg.cpp
+++ b/noncore/settings/aqpkg/ipkg.cpp
@@ -19,2 +19,3 @@
19#include <iostream> 19#include <iostream>
20#include <vector>
20using namespace std; 21using namespace std;
@@ -83,2 +84,4 @@ bool Ipkg :: runIpkg( )
83 cmd += " -force-overwrite"; 84 cmd += " -force-overwrite";
85 if ( flags & VERBOSE_WGET )
86 cmd += " -verbose_wget";
84 87
@@ -191,3 +194,3 @@ void Ipkg :: removeStatusEntry()
191 ofstream out( outStatusFile ); 194 ofstream out( outStatusFile );
192 if ( !in.is_open() ) 195 if ( !in.is_open() )
193 { 196 {
@@ -208,2 +211,3 @@ void Ipkg :: removeStatusEntry()
208 QString value; 211 QString value;
212 vector<QString> lines;
209 do 213 do
@@ -233,5 +237,14 @@ void Ipkg :: removeStatusEntry()
233 237
234 out << line << endl; 238 lines.push_back( QString( line ) );
239// out << line << endl;
235 } while ( !in.eof() ); 240 } while ( !in.eof() );
236 241
242 // Write lines out
243 vector<QString>::iterator it;
244 for ( it = lines.begin() ; it != lines.end() ; ++it )
245 {
246 cout << "Writing " << (const char *)(*it) << endl;
247 out << (const char *)(*it) << endl;
248 }
249
237 in.close(); 250 in.close();
@@ -408,3 +421,3 @@ void Ipkg :: processLinkDir( const QString &file, const QString &destDir, const
408 else 421 else
409 emit outputText( QString( "Directory " ) + linkFile + " exists" ); 422 emit outputText( QString( "Directory " ) + linkFile + " already exists" );
410 423
diff --git a/noncore/settings/aqpkg/ipkg.h b/noncore/settings/aqpkg/ipkg.h
index 55e9ff4..7099ca7 100644
--- a/noncore/settings/aqpkg/ipkg.h
+++ b/noncore/settings/aqpkg/ipkg.h
@@ -34,2 +34,3 @@
34#define MAKE_LINKS 0x0010 34#define MAKE_LINKS 0x0010
35#define VERBOSE_WGET 0x0020
35 36