summaryrefslogtreecommitdiff
path: root/contrib/feed-browser/includes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-07-05 15:31:22 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-07-05 15:31:22 +0000
commit66f69d475f74260170e0703e670a9870ab087f29 (patch)
treed8f8eba04e2a3e3873112cbba867ea6b4e2cfdd9 /contrib/feed-browser/includes
parent6173da4b4f643877e3271a8fd8a7bbe79f43094d (diff)
feed-browser: include architecture selector
Diffstat (limited to 'contrib/feed-browser/includes')
-rw-r--r--contrib/feed-browser/includes/functions.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/feed-browser/includes/functions.inc b/contrib/feed-browser/includes/functions.inc
index 2532dd7c08..5549aa578d 100644
--- a/contrib/feed-browser/includes/functions.inc
+++ b/contrib/feed-browser/includes/functions.inc
@@ -129,6 +129,17 @@ function searchpkg ($searchword)
}
}
+
+function searchpkgarch ($searchword, $searcharch)
+{
+ if($result = db_query("SELECT DISTINCT p_name,p_desc,p_section FROM packages WHERE p_name LIKE '$searchword' AND p_arch LIKE '$searcharch' ORDER BY p_name ASC"))
+ {
+ return generate_list_of_packages($result);
+ }
+}
+
+
+
function generate_list_of_packages($query_result)
{
$ipkgoutput = "<table>\n";
@@ -443,7 +454,7 @@ function check_database()
f_name varchar(32),
f_uri varchar(100),
f_type varchar(16)
- )");
+ f_comments varchar(500))");
insert_feeds ($db) ;
}