diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2006-08-29 10:47:50 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2006-08-29 10:47:50 +0000 |
commit | 64a4e89e5d40475bf5c575009c09bbfcd69722a3 (patch) | |
tree | ac613885a98e3210cea8edd2a07af91e85e03f15 /contrib/feed-browser/update.php | |
parent | eb616a13fa3af7aac33be630a0f08a81f158e8ab (diff) |
feed-browser: make all sections lowercase, really remove packages before update
Diffstat (limited to 'contrib/feed-browser/update.php')
-rw-r--r-- | contrib/feed-browser/update.php | 4 |
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; |