summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-09 16:05:25 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-09 16:05:25 +0100
commit4b9589783f4b5f956422d97d8692423a0a14b478 (patch)
treee73936a1ab13c6b1a1ac9fcf0b795701b88850f1
parent1c8c1363caf3fc8c3f2aa1de6a71fb432fe5c6ba (diff)
downloadmorph-4b9589783f4b5f956422d97d8692423a0a14b478.tar.gz
import: Fix Omnibus import to not include build arguments as Gem names
-rwxr-xr-ximport/omnibus.to_chunk3
1 files changed, 2 insertions, 1 deletions
diff --git a/import/omnibus.to_chunk b/import/omnibus.to_chunk
index bacb3cfd..a696d198 100755
--- a/import/omnibus.to_chunk
+++ b/import/omnibus.to_chunk
@@ -81,7 +81,8 @@ class Omnibus::Builder
elsif command.start_with? 'install'
parser = GemInstallCommandParser.new
args = Shellwords.split(command).drop(1)
- gems = parser.dependency_list_from_commandline(args)
+ args_without_build_flags = args.take_while { |item| item != '--' }
+ gems = parser.dependency_list_from_commandline(args_without_build_flags)
manually_installed_rubygems.concat gems
end
end