summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-14 14:07:39 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-14 14:07:39 +0000
commita59142eb38d1db499747c01569f800b13c631c0b (patch)
treed4b8b1acd6f6901540f482d5d74b8573542664c4
parent8a76774931ef2104853b265dbeac2563e105a415 (diff)
downloadurpmi-a59142eb38d1db499747c01569f800b13c631c0b.tar
urpmi-a59142eb38d1db499747c01569f800b13c631c0b.tar.gz
urpmi-a59142eb38d1db499747c01569f800b13c631c0b.tar.bz2
urpmi-a59142eb38d1db499747c01569f800b13c631c0b.tar.xz
urpmi-a59142eb38d1db499747c01569f800b13c631c0b.zip
--install-src was broken
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
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} = $_;
}