Project

General

Profile

Bug #10712

[PATCH] lib/resolv.rb: consider ENETUNREACH as ResolvTimeout

Added by normalperson (Eric Wong) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
trunk
[ruby-core:67410]

Description

This allows "gem install /path/to/local.gem" to be successful
on a machine without a network connection.

I'm fairly sure this should be fixed in lib/resolv.rb instead
of inside RubyGems (and everything else which relies on rescuing
Resolv::ResolvError).


Files

Updated by akr (Akira Tanaka) over 5 years ago

Please commit.

#2

Updated by Anonymous over 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r49175.


lib/resolv.rb: consider ENETUNREACH as ResolvTimeout

This allows "gem install /path/to/local.gem" to be successful
on a machine without a network connection.

[ruby-core:67411] [Bug #10712]

Updated by naruse (Yui NARUSE) over 5 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE

ruby_2_2 r49286 merged revision(s) 49175.

Updated by usa (Usaku NAKAMURA) over 5 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONE, 2.1: REQUIRED, 2.2: DONE

ruby_2_0_0 r49422 merged revision(s) 49175.
and also backported a part of r40160.

Updated by nagachika (Tomoyuki Chikanaga) over 5 years ago

  • Backport changed from 2.0.0: DONE, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONE, 2.1: DONE, 2.2: DONE

Backported into ruby_2_1 at r49785.

Updated by djberg96 (Daniel Berger) over 5 years ago

Isn't that what the -l switch is for?

Also available in: Atom PDF