All pastes #1828795 Raw Edit

teuf

public text v1 · immutable
#1828795 ·published 2010-03-08 17:54 UTC
rendered paste body
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pmindex adf776d..f83d048 100644--- a/urpm/get_pkgs.pm+++ b/urpm/get_pkgs.pm@@ -179,7 +179,14 @@ sub download_packages_of_distant_media { 	#- examine all files to know what can be indexed on multiple media. 	while (my ($id, $pkg) = each %{$blist->{pkgs}}) { 	    #- the given URL is trusted, so the file can safely be ignored.-	    defined $sources->{$id} and next;+            if (defined $sources->{$id}) {+                if ($pkg->id != $id) {+                    $new_sources{$id} = [ $pkg->id, $sources->{$id} ];+                    delete $sources->{$id};+                }+                next;+            }+ 	    exists $new_sources{$id} and next; 	    if (urpm::is_local_medium($blist->{medium})) { 		my $local_file = file_from_local_url(urpm::blist_pkg_to_url($blist, $pkg));