From 12ee9f8cc71bcc4f1dc81b46dab1225d3c16d1e4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 31 Mar 2006 17:24:32 +0000 Subject: workaround standalone.pm eating "--auto" from @ARGV (broken since 15 Feb 2006) --- mdkupdate | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mdkupdate b/mdkupdate index eec1a739..e3115c36 100755 --- a/mdkupdate +++ b/mdkupdate @@ -20,6 +20,10 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ################################################################################ +# workaround standalone.pm eating "--auto" from @ARGV: +my @REAL_ARGV; +BEGIN { @REAL_ARGV = @ARGV }; + use strict; use POSIX; use lib qw(/usr/lib/libDrakX /usr/lib/libDrakX/drakfirsttime); @@ -89,6 +93,7 @@ my %options = ( 'h|help' => \&usage, ); +@ARGV = @REAL_ARGV; GetOptions(%options); # workaround an issue with browsers that sometimes drop the --bundle option: -- cgit v1.2.1