Package: ruby-snmp / 1.3.1-1

avoid_diverting_mibs.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Change data path
Forwarded: not need
Author: David Moreno Garza <damog@damog.net>
Last-Update: 2013-09-03

diff --git a/lib/snmp/mib.rb b/lib/snmp/mib.rb
index b379609..2b0c331 100644
--- a/lib/snmp/mib.rb
+++ b/lib/snmp/mib.rb
@@ -16,7 +16,7 @@ module SNMP
   class MIB
 
     #:stopdoc:
-    data_path = File.expand_path(File.dirname(__FILE__) + "/../../data/ruby/snmp/mibs")
+    data_path = "/usr/share/doc/ruby-snmp/yaml/"
     DEFAULT_MIB_PATH = if (File.exist?(data_path))
       data_path
     else