diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-01-25 15:33:37 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-01-25 15:33:37 +0000 |
commit | 1c0013e9905581b3b7cfd0e85b13b7a8669c199c (patch) | |
tree | 64645612d453c03684ee885ecd3672cc152290b2 /urpm.pm | |
parent | 8c43c87b270294274d5af2675cefc5dbfc0a484d (diff) | |
download | urpmi-1c0013e9905581b3b7cfd0e85b13b7a8669c199c.tar urpmi-1c0013e9905581b3b7cfd0e85b13b7a8669c199c.tar.gz urpmi-1c0013e9905581b3b7cfd0e85b13b7a8669c199c.tar.bz2 urpmi-1c0013e9905581b3b7cfd0e85b13b7a8669c199c.tar.xz urpmi-1c0013e9905581b3b7cfd0e85b13b7a8669c199c.zip |
Correctly register specfiles in depslist
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]; |