summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-08-29 10:47:50 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-08-29 10:47:50 +0000
commit64a4e89e5d40475bf5c575009c09bbfcd69722a3 (patch)
treeac613885a98e3210cea8edd2a07af91e85e03f15 /contrib
parenteb616a13fa3af7aac33be630a0f08a81f158e8ab (diff)
feed-browser: make all sections lowercase, really remove packages before update
Diffstat (limited to 'contrib')
-rw-r--r--contrib/feed-browser/update.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/feed-browser/update.php b/contrib/feed-browser/update.php
index 786e898494..b82b843663 100644
--- a/contrib/feed-browser/update.php
+++ b/contrib/feed-browser/update.php
@@ -47,7 +47,7 @@ $feeds = db_query("SELECT f_id, f_name, f_uri FROM feeds");
foreach($feeds as $feed)
{
print("Updating {$feed['f_name']}: ");
- db_query_n("DELETE FROM packages WHERE p_feed = '{$feed['f_name']}'");
+ db_query_n("DELETE FROM packages WHERE p_feed = '{$feed['f_id']}'");
$count = 0;
@@ -104,7 +104,7 @@ foreach($feeds as $feed)
$package_info['conflicts'] = $value;
break;
case 'Section':
- $package_info['section'] = $value;
+ $package_info['section'] = strtolower($value);
break;
case 'Architecture':
$package_info['arch'] = $value;