From 59db9e4188cbc9819f719e26ac8b2070e1777df4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Nov 2006 09:27:55 +0000 Subject: use _parse_maybe_hdlist_or_synthesis() --- urpm.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 6e597e47..c1fafd4c 100644 --- a/urpm.pm +++ b/urpm.pm @@ -1183,11 +1183,8 @@ sub _read_existing_synthesis_and_hdlist { #- XXX we could link the new hdlist to the old one. #- (However links need to be managed. see bug #12391.) #- as previously done, just read synthesis file here, this is enough. - if (!_parse_synthesis($urpm, $medium, statedir_synthesis($urpm, $medium))) { - _parse_hdlist($urpm, $medium, statedir_hdlist($urpm, $medium)); - _check_after_reading_hdlist_or_synthesis($urpm, $medium); - } - + _parse_maybe_hdlist_or_synthesis($urpm, $medium, statedir_synthesis($urpm, $medium)) + or _check_after_reading_hdlist_or_synthesis($urpm, $medium); 1; } -- cgit v1.2.1