diff options
author | Daniel Hartwig <mandyke@gmail.com> | 2012-06-30 19:15:15 +0800 |
---|---|---|
committer | Daniel Hartwig <mandyke@gmail.com> | 2012-06-30 19:15:15 +0800 |
commit | 99e7df86764dc815bbaf59551439824d22928641 (patch) | |
tree | 03af9f84c1079c36bb44b3fedded30f3eb138efe | |
parent | 316345253ed2ac49754e47d7cc7a4678c6e1e33a (diff) | |
download | aptitude-99e7df86764dc815bbaf59551439824d22928641.tar.gz |
Do not group packages as tasks section based on their name
Closes: #679602
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/pkg_grouppolicy.cc | 12 |
2 files changed, 9 insertions, 6 deletions
@@ -146,6 +146,9 @@ ii. to make the program more atomic and reliable when used we don't need to instruct the user to add any (Closes: #587775, #537393) + * [curses]: Do not group packages as tasks based on their name, + rather, use their section. (Closes: #679602) + - Internal changes: * Unified the way packages are selected from command line diff --git a/src/pkg_grouppolicy.cc b/src/pkg_grouppolicy.cc index bc9a5574..1844c6a0 100644 --- a/src/pkg_grouppolicy.cc +++ b/src/pkg_grouppolicy.cc @@ -259,12 +259,7 @@ void pkg_grouppolicy_section::add_package(const pkgCache::PkgIterator &pkg, bool may_passthrough = false; string section; - if(!strncmp(pkg.Name(), "task-", 5)) - { - section=_("Tasks"); - may_passthrough = true; - } - else if(pkg.VersionList().end()) + if(pkg.VersionList().end()) { section=_("virtual"); may_passthrough = true; @@ -275,6 +270,11 @@ void pkg_grouppolicy_section::add_package(const pkgCache::PkgIterator &pkg, section=_("Unknown"); may_passthrough = true; } + else if(strcmp(pkg.VersionList().Section(), "tasks") == 0) + { + section=_("Tasks"); + may_passthrough = true; + } else { section=pkg.VersionList().Section(); |