Permalink
Browse files

Added filtering of asterisked packages in Package.hold()

  • Loading branch information...
1 parent 2a0a941 commit 399c16a12b66b9037894dca5451949323bb3621f @vtsvang committed Jan 23, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/package.coffee
View
@@ -230,6 +230,9 @@ class Package
# load all the packages in dependencies
packages = [ dependencies..., devDependencies... ]
+ # filter asterisked packages
+ packages = ( pkg for own pkg in packages when ( @dependencies[ pkg ] ? @devDependencies[ pkg ] ) is "*" )
+
# load latest packages versions
async.map packages, @fetch.bind( @ ) , ( err, results ) =>
# handle errors

0 comments on commit 399c16a

Please sign in to comment.