summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-03 17:15:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-03 17:15:19 +0000
commitbd9dbe0f3987d63484582a939d7a4feb1000f829 (patch)
tree7e758131c92322dfdfaab6921cd82c08cf66be03 /urpmf
parent0433fe833b0f86f87170f490c890c2a33c412208 (diff)
downloadurpmi-bd9dbe0f3987d63484582a939d7a4feb1000f829.tar
urpmi-bd9dbe0f3987d63484582a939d7a4feb1000f829.tar.gz
urpmi-bd9dbe0f3987d63484582a939d7a4feb1000f829.tar.bz2
urpmi-bd9dbe0f3987d63484582a939d7a4feb1000f829.tar.xz
urpmi-bd9dbe0f3987d63484582a939d7a4feb1000f829.zip
- create non_modified_media() and use it
- rename _parse_media() into parse_media() for next commit
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpmf b/urpmf
index 0416d5b4..1b3447c6 100755
--- a/urpmf
+++ b/urpmf
@@ -285,21 +285,21 @@ urpm::media::configure($urpm,
# nb: we don't "my" $medium since it is used for $callback
if ($needed_media_info{hdlist}) {
- foreach $medium (grep { !$_->{ignore} } @{$urpm->{media}}) {
+ foreach $medium (urpm::media::non_ignored_media($urpm)) {
my $hdlist = urpm::media::any_hdlist($urpm, $medium, $options{verbose} < 0) or
$urpm->{error}(N("no hdlist available for medium \"%s\"", $medium->{name})), next;
$urpm->{log}("getting information from $hdlist");
$urpm->parse_hdlist($hdlist, callback => $callback);
}
} elsif (!@needed_xml_info) {
- foreach $medium (grep { !$_->{ignore} } @{$urpm->{media}}) {
+ foreach $medium (urpm::media::non_ignored_media($urpm)) {
my $synthesis = urpm::media::any_synthesis($urpm, $medium) or
$urpm->{error}(N("no synthesis available for medium \"%s\"", $medium->{name})), next;
$urpm->{log}("getting information from $synthesis");
$urpm->parse_synthesis($synthesis, callback => $callback);
}
} elsif (my ($xml_info) = @needed_xml_info) {
- foreach $medium (grep { !$_->{ignore} } @{$urpm->{media}}) {
+ foreach $medium (urpm::media::non_ignored_media($urpm)) {
my $xml_info_file = urpm::media::any_xml_info($urpm, $medium, $xml_info, $options{verbose} < 0);
if (!$xml_info_file) {
my $hdlist = urpm::media::any_hdlist($urpm, $medium, $options{verbose} < 0) or