diff options
-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(); |