void-packages/srcpkgs/vagrant/patches/fix-nfs-detection.patch

23 lines
955 B
Diff

--- plugins/hosts/void/cap/nfs.rb
+++ plugins/hosts/void/cap/nfs.rb
@@ -15,7 +15,7 @@ module VagrantPlugins
end
def self.nfs_installed(env)
- result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query nfs-utils")
+ result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query", "nfs-utils")
result.exit_code == 0
end
end
--- test/unit/plugins/hosts/void/cap/nfs_test.rb
+++ test/unit/plugins/hosts/void/cap/nfs_test.rb
@@ -39,7 +39,7 @@ describe VagrantPlugins::HostVoid::Cap::NFS do
let(:result) { Vagrant::Util::Subprocess::Result.new(exit_code, "", "") }
before { allow(Vagrant::Util::Subprocess).to receive(:execute).
- with(/xbps-query nfs-utils/).and_return(result) }
+ with("/usr/bin/xbps-query", "nfs-utils").and_return(result) }
it "should provide nfs_installed capability" do
expect(caps.get(:nfs_installed)).to eq(described_class)