summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-01-25 15:33:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-01-25 15:33:37 +0000
commit1c0013e9905581b3b7cfd0e85b13b7a8669c199c (patch)
tree64645612d453c03684ee885ecd3672cc152290b2 /urpm.pm
parent8c43c87b270294274d5af2675cefc5dbfc0a484d (diff)
downloadurpmi-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.pm4
1 files changed, 3 insertions, 1 deletions
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];