]> git.pld-linux.org Git - packages/vagrant.git/commitdiff
fix networking detection for pld auto/th/vagrant-1.7.4-1
authorElan Ruusamäe <glen@delfi.ee>
Fri, 21 Aug 2015 09:48:40 +0000 (12:48 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 21 Aug 2015 09:48:40 +0000 (12:48 +0300)
pld-networking.patch [new file with mode: 0644]
vagrant.spec

diff --git a/pld-networking.patch b/pld-networking.patch
new file mode 100644 (file)
index 0000000..7092aad
--- /dev/null
@@ -0,0 +1,28 @@
+--- /dev/null  2015-05-25 21:49:42.000000000 +0300
++++ vagrant-1.7.4/plugins/guests/pld/cap/flavor.rb     2015-08-21 12:37:06.511699482 +0300
+@@ -0,0 +1,11 @@
++module VagrantPlugins
++  module GuestPld
++    module Cap
++      class Flavor
++        def self.flavor(machine)
++          return :pld
++        end
++      end
++    end
++  end
++end
+--- vagrant-1.7.4/plugins/guests/pld/plugin.rb~        2015-07-17 22:38:51.000000000 +0300
++++ vagrant-1.7.4/plugins/guests/pld/plugin.rb 2015-08-21 12:39:33.651261462 +0300
+@@ -20,6 +20,11 @@
+         require_relative "cap/network_scripts_dir"
+         Cap::NetworkScriptsDir
+       end
++
++      guest_capability("pld", "flavor") do
++        require_relative "cap/flavor"
++        Cap::Flavor
++      end
+     end
+   end
+ end
index fbaa21bc2532bcfb8418751fecc94ed040c828ec..a13e3778a6ea8723bcacab078bd872627d5bdc79 100644 (file)
@@ -18,6 +18,7 @@ Patch6:               checkpoint.patch
 Patch7:                insert-key.patch
 Patch8:                listen.patch
 Patch9:                pld-chef-installed.patch
+Patch10:       pld-networking.patch
 URL:           http://www.vagrantup.com/
 BuildRequires: bash
 BuildRequires: rpm-rubyprov
@@ -126,6 +127,7 @@ Ruby documentation for %{gem_name}
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 VERSION=$(cat version.txt)
 sed -i -e "s/__VERSION__/$VERSION/" lib/vagrant/version.rb
This page took 0.217094 seconds and 4 git commands to generate.