summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2006-06-21 08:42:18 +0000
committerivan <ivan>2006-06-21 08:42:18 +0000
commit6c472b9d7eb5d64026baf188623cc133416253f6 (patch)
tree96f486bdddcd4dcddf598dc86d832f041d661f61 /httemplate
parentb5c26536197f16a3e1ea47c14c94884312c7fd24 (diff)
speed up the agent type report when there are lots of package definitions
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/browse/agent_type.cgi13
1 files changed, 5 insertions, 8 deletions
diff --git a/httemplate/browse/agent_type.cgi b/httemplate/browse/agent_type.cgi
index a5ffb1048..ceffce3d4 100755
--- a/httemplate/browse/agent_type.cgi
+++ b/httemplate/browse/agent_type.cgi
@@ -13,21 +13,18 @@ my $packages_sub = sub {
[ map {
my $type_pkgs = $_;
- my $part_pkg = $type_pkgs->part_pkg;
+ #my $part_pkg = $type_pkgs->part_pkg;
[
{
- 'data' => $part_pkg->pkg. ' - '. $part_pkg->comment,
+ #'data' => $part_pkg->pkg. ' - '. $part_pkg->comment,
+ 'data' => $type_pkgs->pkg. ' - '. $type_pkgs->comment,
'align' => 'left',
'link' => $p. 'edit/part_pkg.cgi?'. $type_pkgs->pkgpart,
},
];
}
- #sort {
- # }
- grep {
- $_->part_pkg and ! $_->part_pkg->disabled
- }
- $agent_type->type_pkgs #XXX the method should order itself by something
+
+ $agent_type->type_pkgs_enabled
];
};