From f958a5ac8116fcf11648a26752695a6bb4be1f90 Mon Sep 17 00:00:00 2001 From: Jocelyn Jaubert Date: Sat, 24 Aug 2013 22:48:58 +0200 Subject: [PATCH] Correctly handle option user_install in gem module --- library/packaging/gem | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/packaging/gem b/library/packaging/gem index 889f5101688..762bf576d50 100644 --- a/library/packaging/gem +++ b/library/packaging/gem @@ -157,7 +157,9 @@ def install(module): else: if major and major < 2: cmd.append('--include-dependencies') - if not module.params['user_install']: + if module.params['user_install']: + cmd.append('--user-install') + else: cmd.append('--no-user-install') cmd.append('--no-rdoc') cmd.append('--no-ri')