summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-23 22:35:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-23 22:35:15 +0000
commit3b0a734676c8fdafaacc1f85af079eeb0b223ce0 (patch)
treefcfe1418551e9759619fbc990cc87d85dfdc6bff /urpmi.addmedia
parent90bd43828799e9e1344d9eebe3e97c603a8ec446 (diff)
downloadurpmi-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-xurpmi.addmedia5
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);