diff --git a/crew b/crew index 25335574a2..e20e104a5e 100755 --- a/crew +++ b/crew @@ -134,14 +134,9 @@ def list_available end def list_installed - Find.find (CREW_LIB_PATH + 'packages') do |filename| - Find.find(CREW_CONFIG_PATH + 'meta/') do |packageList| - packageName = File.basename filename, '.rb' - if packageList == CREW_CONFIG_PATH + 'meta/' + packageName + '.filelist' - puts File.basename filename, '.rb' if File.extname(filename) == '.rb' - end - end - end + Dir["#{CREW_CONFIG_PATH}/meta/*.directorylist"].sort.map { |f| + File.basename(f, ".directorylist") + } end def search (pkgName, silent = false) @@ -935,7 +930,7 @@ def list_command (args) if args['available'] list_available elsif args['installed'] - list_installed + puts list_installed end end diff --git a/lib/const.rb b/lib/const.rb index 22b9cbb4f4..d4109d1fc9 100644 --- a/lib/const.rb +++ b/lib/const.rb @@ -1,6 +1,6 @@ # Defines common constants used in different parts of crew -CREW_VERSION = '1.2.8' +CREW_VERSION = '1.2.9' ARCH = `uname -m`.strip ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end