author | drw <drw> | 2004-12-21 00:37:22 (UTC) |
---|---|---|
committer | drw <drw> | 2004-12-21 00:37:22 (UTC) |
commit | 769f2a09ccfcc639a87600ecb046e9140fe2f691 (patch) (side-by-side diff) | |
tree | 27f74b9403d9d41be40e759b7ce238d601b6ef45 /noncore/settings/packagemanager/oipkg.cpp | |
parent | 8c316a01b28879b9f4fc6df736773245c8358ffc (diff) | |
download | opie-769f2a09ccfcc639a87600ecb046e9140fe2f691.zip opie-769f2a09ccfcc639a87600ecb046e9140fe2f691.tar.gz opie-769f2a09ccfcc639a87600ecb046e9140fe2f691.tar.bz2 |
Preliminary support for src/gz feeds, it works if you manually update ipkg.conf. Still need to add configuration option on server config dialog tab.
Diffstat (limited to 'noncore/settings/packagemanager/oipkg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/oipkg.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/settings/packagemanager/oipkg.cpp b/noncore/settings/packagemanager/oipkg.cpp index b0cc94d..a66bd51 100644 --- a/noncore/settings/packagemanager/oipkg.cpp +++ b/noncore/settings/packagemanager/oipkg.cpp @@ -153,7 +153,14 @@ void OIpkg::setConfigItems( OConfItemList *configList ) switch ( item->type() ) { - case OConfItem::Source : confLine.append( "src " ); break; + case OConfItem::Source : + { + if ( item->features().contains( "Compressed" ) ) + confLine.append( "src/gz " ); + else + confLine.append( "src " ); + } + break; case OConfItem::Destination : confLine.append( "dest " ); break; case OConfItem::Option : confLine.append( "option " ); break; case OConfItem::Arch : confLine.append( "arch " ); break; @@ -508,8 +515,14 @@ void OIpkg::loadConfiguration() // Type QString typeStr = line.left( pos ); OConfItem::Type type; + QString features; if ( typeStr == "src" || typeStr == "#src" ) type = OConfItem::Source; + else if ( typeStr == "src/gz" || typeStr == "#src/gz" ) + { + type = OConfItem::Source; + features = "Compressed"; + } else if ( typeStr == "dest" || typeStr == "#dest" ) type = OConfItem::Destination; else if ( typeStr == "option" || typeStr == "#option" ) @@ -533,7 +546,7 @@ void OIpkg::loadConfiguration() bool active = !line.startsWith( "#" ); // Add to list - m_confInfo->append( new OConfItem( type, name, value, active ) ); + m_confInfo->append( new OConfItem( type, name, value, features, active ) ); } } } |