From a59142eb38d1db499747c01569f800b13c631c0b Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 14 Mar 2006 14:07:39 +0000 Subject: --install-src was broken --- urpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urpm.pm b/urpm.pm index adc36c04..69740581 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2136,7 +2136,7 @@ sub register_rpms { ($id) = $urpm->parse_rpm($_); my $pkg = defined $id && $urpm->{depslist}[$id]; $pkg or $error = 1, $urpm->{error}(N("unable to register rpm file")), next; - $pkg->is_arch_compat() + $pkg->arch eq 'src' || $pkg->is_arch_compat() or $error = 1, $urpm->{error}(N("Incompatible architecture for rpm [%s]", $_)), next; $urpm->{source}{$id} = $_; } -- cgit v1.2.1