From a26f08dea77388fede785b732239d811c69ee843 Mon Sep 17 00:00:00 2001 From: Andreas Barth Date: Fri, 4 Jun 2010 13:17:38 +0000 Subject: [PATCH] merge-v3: allow to specify %ARCH% and %SUITE% in file on the command line --- bin/wanna-build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/wanna-build b/bin/wanna-build index 232b0b5..3417a4d 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -107,6 +107,7 @@ elsif ($progname =~ /^list-(.*)$/) { my %options = (# flags + simulate => { flag => \$simulate }, # this is not supported by all operations (yet)! verbose => { short => "v", flag => \$verbose }, override => { short => "o", flag => \$opt_override }, "create-db" => { flag => \$opt_create_db }, @@ -493,6 +494,8 @@ sub process { # call with installed-packages+ . installed-sources+ [ . available-for-build-packages+ ] # in case available-for-build-packages is not specified, installed-packages are used lock_table() unless $simulate; + my $replacemap = { '%ARCH%' => $arch, '%SUITE%' => $distribution }; + map { my $k = $_; grep { $k =~ s,$_,$replacemap->{$_}, } keys %{$replacemap}; $_ = $k; } @ARGV; my @ipkgs = &parse_argv( \@ARGV, '.'); my @isrcs = &parse_argv( \@ARGV, '.'); my @bpkgs = &parse_argv( \@ARGV, '.'); -- 2.39.2