aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-19 09:44:50 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-19 09:44:50 +0000
commitd0d426eca916d6f4282df43fcd14e7ef9edcdd77 (patch)
treee91f956abdb1533c6f31c2c1c331eb12de53a659 /edit-urpm-sources.pl
parentf7e0b4dba87524ccb02d99d3ebf89f0c26f4999c (diff)
downloadrpmdrake-d0d426eca916d6f4282df43fcd14e7ef9edcdd77.tar
rpmdrake-d0d426eca916d6f4282df43fcd14e7ef9edcdd77.tar.gz
rpmdrake-d0d426eca916d6f4282df43fcd14e7ef9edcdd77.tar.bz2
rpmdrake-d0d426eca916d6f4282df43fcd14e7ef9edcdd77.tar.xz
rpmdrake-d0d426eca916d6f4282df43fcd14e7ef9edcdd77.zip
fix broken media reordering (program crashed)
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index af0e2883..46ad56ab 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -573,8 +573,8 @@ sub mainwindow {
$reorder_ok or return;
my @media;
$model->foreach(sub {
- my (undef, $path) = @_;
- my $name = $model->get($path, 1);
+ my (undef, undef, $iter) = @_;
+ my $name = $model->get($iter, 1);
push @media, find { $_->{name} eq $name } @{$urpm->{media}};
0;
}, undef);