diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-23 22:35:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-23 22:35:15 +0000 |
commit | 3b0a734676c8fdafaacc1f85af079eeb0b223ce0 (patch) | |
tree | fcfe1418551e9759619fbc990cc87d85dfdc6bff /urpmi.addmedia | |
parent | 90bd43828799e9e1344d9eebe3e97c603a8ec446 (diff) | |
download | urpmi-3b0a734676c8fdafaacc1f85af079eeb0b223ce0.tar urpmi-3b0a734676c8fdafaacc1f85af079eeb0b223ce0.tar.gz urpmi-3b0a734676c8fdafaacc1f85af079eeb0b223ce0.tar.bz2 urpmi-3b0a734676c8fdafaacc1f85af079eeb0b223ce0.tar.xz urpmi-3b0a734676c8fdafaacc1f85af079eeb0b223ce0.zip |
drop obsolete code (remove_failed function already removed, and error handling
is now much better in urpmi: it won't write urpmi.cfg until everything is ok)
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-x | urpmi.addmedia | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index 3bf79ba2..c050a8ae 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -185,11 +185,6 @@ if ($options{distrib}) { if ($options{raw}) { urpm::media::write_config($urpm); } else { - local $SIG{INT} = sub { - my $medium = urpm::media::name2medium($urpm, $name); - remove_failed($urpm, $medium) if $medium && $medium->{modified}; - exit(1); - }; $ok = urpm::media::update_media($urpm, %options, quiet => $options{verbose} < 0, callback => \&urpm::download::sync_logger); |