summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/packagemanager.cpp b/noncore/unsupported/oipkg/packagemanager.cpp
index f3da15d..642eae9 100644
--- a/noncore/unsupported/oipkg/packagemanager.cpp
+++ b/noncore/unsupported/oipkg/packagemanager.cpp
@@ -584,50 +584,50 @@ void PackageManager::doSettings()
startRun();
runIpkg("update");
endRun();
updatePackageList();
} else {
readSettings();
}
}
void PackageManager::readSettings()
{
// read from config file(s)
readIpkgConfig("/etc/ipkg.conf");
}
void PackageManager::writeSettings()
{
QFile conf("/etc/ipkg.conf");
if ( conf.open(IO_WriteOnly) ) {
QTextStream s(&conf);
s << "# Written by Qtopia Package Manager\n";
if ( !ipkg_old ) {
for (int i=0; i<(int)settings->servers->count(); i++) {
QString url = serverurl[i] ? *serverurl[i] : QString("???");
- if ( !settings->servers->isSelected(i) )
- s << "#";
+// if ( !settings->servers->isSelected(i) )
+// s << "#";
s << "src " << settings->servers->text(i) << " " << url << "\n";
}
s << "dest root /\n"; // ### need UI
// if ( !settings->username->text().isEmpty() )
// s << "option proxy_username " << settings->username->text() << "\n";
// if ( !settings->password->text().isEmpty() )
// s << "option proxy_password " << settings->password->text() << "\n";
// if ( !settings->http->text().isEmpty() )
// s << "option http_proxy " << settings->http->text() << "\n";
// if ( !settings->ftp->text().isEmpty() )
// s << "option ftp_proxy " << settings->ftp->text() << "\n";
} else {
// Old style
bool src_selected=FALSE;
for (int i=0; i<(int)settings->servers->count(); i++) {
if ( settings->servers->isSelected(i) ) {
src_selected=TRUE;
} else {
s << "#";
}
s << "IPKG_SOURCE=\"" << settings->servers->text(i) << "\"\n";
}
if ( !src_selected )
s << "IPKG_SOURCE=\"" << settings->servers->currentText() << "\"\n";