tag 427210 patch thanks On Sat, Jun 02, 2007 at 01:43:21PM +0200, Bernhard R. Link wrote: > dpkg-gencontol does: > > grep(debarch_is($host_arch, $_), @archlist) || > &error(sprintf(_g("current build architecture %s does not". > " appear in package's list (%s)"), > $host_arch, "@archlist")); > > which in current unstable results in a confusing error message like: > dpkg-gencontrol: error: current build architecture abacus does not appear in > package's list (abacus)
I suggest this patch to fix the issue: >From 16a119732007d5922f383a144c0d9137008aeedd Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld <[EMAIL PROTECTED]> Date: Tue, 25 Sep 2007 01:01:30 +0200 Subject: [PATCH] controllib.pl: debarch_is(foo, 'any') should always be true Currently this will not return true if foo has no defined triplet. Signed-off-by: Frank Lichtenheld <[EMAIL PROTECTED]> --- scripts/controllib.pl | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/controllib.pl b/scripts/controllib.pl index 1b7c52d..d5d1716 100755 --- a/scripts/controllib.pl +++ b/scripts/controllib.pl @@ -299,6 +299,9 @@ sub debarch_eq($$) sub debarch_is($$) { my ($real, $alias) = @_; + + return 1 if $alias eq 'any'; + my @real = debarch_to_debtriplet($real); my @alias = debwildcard_to_debtriplet($alias); -- 1.5.2.5 Gruesse, -- Frank Lichtenheld <[EMAIL PROTECTED]> www: http://www.djpig.de/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]