From 1c0013e9905581b3b7cfd0e85b13b7a8669c199c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 25 Jan 2006 15:33:37 +0000 Subject: Correctly register specfiles in depslist --- urpm.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 46fda003..de284ae9 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2113,7 +2113,9 @@ sub register_rpms { or $error = 1, $urpm->{error}(N("unable to parse spec file %s [%s]", $_, $!)), next; $id = @{$urpm->{depslist}}; $urpm->{depslist}[$id] = $pkg; - $urpm->{source}{$id} = $_; + #- It happens that URPM sets an internal id to the depslist id. + #- We need to set it by hand here. + $pkg->set_id($id); } else { ($id, undef) = $urpm->parse_rpm($_); my $pkg = defined $id && $urpm->{depslist}[$id]; -- cgit v1.2.1