diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-05 10:06:48 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-05 10:06:48 +0000 |
commit | b459ed95992b02311232bf4530903ac4aee073e0 (patch) | |
tree | d38735a281d2bbeaad0374987d35d32ee576c721 | |
parent | 01d868b8a066fa0f223b54257ba3bec6f779d215 (diff) | |
download | urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar.gz urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar.bz2 urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar.xz urpmi-b459ed95992b02311232bf4530903ac4aee073e0.zip |
- urpmi, urpme, urpmq, urpmf:
o fix --use-distrib
(and add test to ensure it never breaks again)
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | t/superuser--addmedia.t | 6 | ||||
-rw-r--r-- | urpm/media.pm | 2 |
3 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- urpmi, urpme, urpmq, urpmf: + o fix --use-distrib + Version 5.3 - 4 February 2008, by Pascal "Pixel" Rigaux - urpmi.cfg: diff --git a/t/superuser--addmedia.t b/t/superuser--addmedia.t index 9e7ce17f..63b9fb34 100644 --- a/t/superuser--addmedia.t +++ b/t/superuser--addmedia.t @@ -63,6 +63,7 @@ try_distrib_removable({ with_synthesis3 => "../..//media/media_info/synthesis.hdlist_$name3.cz" }, '--probe-synthesis'); +try_use_distrib(); sub try_medium { my ($want, $options, $o_options2) = @_; @@ -119,6 +120,11 @@ sub try_distrib_ { urpmi_removemedia('-a'); } +sub try_use_distrib { + urpmi("--use-distrib $::pwd $name $name2"); + check_installed_and_remove($name, $name2); +} + sub try_distrib_removable_ { my ($want, $want2, $want3, $options) = @_; diff --git a/urpm/media.pm b/urpm/media.pm index b2367ccb..0cf29f9c 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -623,7 +623,7 @@ sub add_medium { if ($with_synthesis) { _migrate__with_synthesis($medium, $with_synthesis); - } else { + } elsif (!$medium->{media_info_dir}) { $medium->{unknown_media_info} = 1; } |