Index: commands/pm/updatecode.pm.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/pm/updatecode.pm.inc,v
retrieving revision 1.21
diff -u -p -r1.21 updatecode.pm.inc
--- commands/pm/updatecode.pm.inc	22 Nov 2010 06:15:45 -0000	1.21
+++ commands/pm/updatecode.pm.inc	22 Nov 2010 22:44:02 -0000
@@ -18,6 +18,9 @@ function drush_pm_updatecode() {
   // Process locks specified on the command line.
   $locked_list = drush_pm_update_lock($projects, drush_get_option_list('lock'), drush_get_option_list('unlock'), drush_get_option('lock-message'));
 
+  // Find only security updates
+  $security = drush_get_option_list('security-only');
+
   // Get specific requests.
   $requests = _convert_csv_to_array(func_get_args());
 
@@ -91,6 +94,13 @@ function drush_pm_updatecode() {
   drush_print_table($rows, TRUE);
   drush_print();
 
+  if (!empty($security)) {
+    foreach ($updateable as $name => $project) {
+      if ($project['status'] != UPDATE_NOT_SECURE) {
+        unset($updateable[$name]);
+      }
+    }
+  }
   // If specific project updates were requested then remove releases for all others
   if (!empty($requests)) {
     foreach ($updateable as $name => $project) {
