From c65d301211fb61e7592ac2ac76184160ccbb3fb8 Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Wed, 2 Aug 2006 21:29:51 +0200
Subject: [PATCH] Extended the list of modules reported in the feature list:
 Bz2, COM, Fuse, GTK2, Gettext, HTTPAccept, Kerberos, SQLite, _Image_SVG. Sort
 the modules in the returned list.

Rev: lib/modules/Tools.pmod/Install.pmod:1.27
---
 lib/modules/Tools.pmod/Install.pmod | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/modules/Tools.pmod/Install.pmod b/lib/modules/Tools.pmod/Install.pmod
index 1584817b4e..5c4236a31b 100644
--- a/lib/modules/Tools.pmod/Install.pmod
+++ b/lib/modules/Tools.pmod/Install.pmod
@@ -7,7 +7,7 @@
 //!
 array(string) features()
 {
-  array a = ({});
+  array a = ({}), m = ({});
   
   if(!_static_modules["Regexp"])
     a += ({ "dynamic_modules" });
@@ -38,7 +38,8 @@ array(string) features()
              "_Image_TIFF", "_Image_TTF", "_Image_XFace", "Image.PNG", "Java",
              "Mird", "Msql", "Mysql", "Odbc", "Oracle", "PDF", "Perl",
              "Postgres", "SANE", "SDL", "Ssleay", "Yp", "sybase", "_WhiteFish",
-             "X" }),
+	     "X", "Bz2", "COM", "Fuse", "GTK2", "Gettext", "HTTPAccept",
+	     "Kerberos", "SQLite", "_Image_SVG"}),
 	  string modname)
   {
     catch
@@ -49,12 +50,12 @@ array(string) features()
       {
 	if(modname[0] == '_')
 	  modname = replace(modname[1..], "_", ".");
-	a += ({ modname });
+	m += ({ modname });
       }
     };
   }
 
-  return a;
+  return a + sort (m);
 }
 
 //!
-- 
GitLab