Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-lib_puppet_util_command__line.rb,v 1.1 2016/08/26 09:26:05 fhajny Exp $
Fix subcommand handling for our suffixed bins.
--- lib/puppet/util/command_line.rb.orig 2016-08-25 13:06:40.887601145 +0000
+++ lib/puppet/util/command_line.rb
@@ -38,7 +38,7 @@ module Puppet
# @return [String] name of the subcommand is being executed
# @api public
def subcommand_name
- return @command if @command != 'puppet'
+ return @command if (@command != 'puppet' && @command != 'puppet@RUBY_SUFFIX@')
if @argv.first =~ OPTION_OR_MANIFEST_FILE
nil
@@ -50,7 +50,7 @@ module Puppet
# @return [Array<String>] the command line arguments being passed to the subcommand
# @api public
def args
- return @argv if @command != 'puppet'
+ return @argv if (@command != 'puppet' && @command != 'puppet@RUBY_SUFFIX@')
if subcommand_name.nil?
@argv