aboutsummaryrefslogtreecommitdiffstats
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
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)
-rwxr-xr-xedit-urpm-sources.pl4
-rw-r--r--rpmdrake.spec5
2 files changed, 6 insertions, 3 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);
diff --git a/rpmdrake.spec b/rpmdrake.spec
index 70a6fda4..99b99f8c 100644
--- a/rpmdrake.spec
+++ b/rpmdrake.spec
@@ -8,7 +8,7 @@
%define name rpmdrake
%define version 2.1.2
-%define release 5mdk
+%define release 6mdk
Name: %{name}
Version: %{version}
@@ -118,6 +118,9 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/park-rpmdrake
%changelog
+* Thu Feb 19 2004 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1.2-6mdk
+- edit-urpm-media: fix broken media reordering (program crashed)
+
* Fri Feb 13 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.1.2-5mdk
- make it embeddable