Permalink
Browse files

BGBUILD-81: post command execution w/ setarch breaks commands which a…

…re scripts
  • Loading branch information...
goldmann committed Mar 5, 2011
1 parent cd9b454 commit 755b2fc0fe3038f4e62eb7a4425d0aa0b1306cc7
View
@@ -1,9 +1,10 @@
-v0.8.2
+v0.9.0
* [BGBUILD-174] Move plugins to boxgrinder-build gem
* [BGBUILD-169] S3 plugin temporary work-around for EL5
* [BGBUILD-103] README to indicate supported operating systems / requirements
* [BGBUILD-175] Rewrite boxgrinder CLI to remove thor dependency
+* [BGBUILD-81] post command execution w/ setarch breaks commands which are scripts
v0.8.1
@@ -251,7 +251,7 @@ def sh(cmd, options = {})
arch = options[:arch] || `uname -m`.chomp.strip
@log.debug "Executing #{cmd}"
- @guestfs.sh("setarch #{arch} << SETARCH_EOF\n#{cmd.gsub('$', '\$')}\nSETARCH_EOF\n")
+ @guestfs.sh("setarch #{arch} << SETARCH_EOF\n#{cmd}\nSETARCH_EOF")
end
def augeas(&block)
@@ -5,7 +5,7 @@
Summary: A tool for creating appliances from simple plain text files
Name: rubygem-%{gemname}
-Version: 0.8.2
+Version: 0.9.0
Release: 1%{?dist}
Group: Development/Languages
License: LGPLv3+
@@ -136,12 +136,13 @@ popd
%changelog
-* Tue Mar 01 2011 <msavy@redhat.com> - 0.8.2-1
+* Tue Mar 01 2011 <msavy@redhat.com> - 0.9.0-1
- Upstream release: 0.8.2
- [BGBUILD-103] README to indicate supported operating systems / requirements
- [BGBUILD-169] S3 plugin temporary work-around for EL5
- [BGBUILD-174] Move plugins to boxgrinder-build gem
- [BGBUILD-175] Rewrite boxgrinder CLI to remove thor dependency
+- [BGBUILD-81] post command execution w/ setarch breaks commands which are scripts
* Tue Feb 16 2011 <mgoldman@redhat.com> - 0.8.1-1
- Upstream release: 0.8.1
@@ -251,7 +251,7 @@ module BoxGrinder
@helper.should_receive(:`).with('uname -m').and_return('bleh')
@helper.instance_variable_set(:@guestfs, guestfs)
- guestfs.should_receive(:sh).with("setarch bleh << SETARCH_EOF\ncommand\nSETARCH_EOF\n")
+ guestfs.should_receive(:sh).with("setarch bleh << SETARCH_EOF\ncommand\nSETARCH_EOF")
@helper.sh("command")
end
@@ -260,7 +260,7 @@ module BoxGrinder
guestfs = mock('Guestfs')
@helper.instance_variable_set(:@guestfs, guestfs)
- guestfs.should_receive(:sh).with("setarch arch << SETARCH_EOF\ncommand\nSETARCH_EOF\n")
+ guestfs.should_receive(:sh).with("setarch arch << SETARCH_EOF\ncommand\nSETARCH_EOF")
@helper.sh("command", :arch => 'arch')
end

0 comments on commit 755b2fc

Please sign in to comment.