Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff -ru ec2-ami-tools-1.4.0.5-orig/lib/ec2/amitools/bundle.rb ec2-ami-tools-1.4.0.5/lib/ec2/amitools/bundle.rb 2--- ec2-ami-tools-1.4.0.5-orig/lib/ec2/amitools/bundle.rb 2011-12-06 14:57:28.000000000 +0100 3+++ ec2-ami-tools-1.4.0.5/lib/ec2/amitools/bundle.rb 2012-02-25 21:24:57.682427268 +0100 4@@ -80,7 +80,7 @@ 5 # piped via several processes. The tee is used to allow a 6 # digest of the file to be calculated without having to re-read 7 # it from disk. 8- tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse 9+ tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse.writable 10 tar.owner(0).group(0) 11 tar.add(File::basename( image_file ), File::dirname( image_file )) 12 openssl = EC2::Platform::Current::Constants::Utility::OPENSSL 13diff -ru ec2-ami-tools-1.4.0.5-orig/lib/ec2/platform/linux/tar.rb ec2-ami-tools-1.4.0.5/lib/ec2/platform/linux/tar.rb 14--- ec2-ami-tools-1.4.0.5-orig/lib/ec2/platform/linux/tar.rb 2011-12-06 14:57:28.000000000 +0100 15+++ ec2-ami-tools-1.4.0.5/lib/ec2/platform/linux/tar.rb 2012-02-25 21:23:36.342716403 +0100 16@@ -31,6 +31,7 @@ 17 def update; @options << '-u'; self; end 18 def sparse; @options << '-S'; self; end 19 def dereference; @options << '-h'; self; end 20+ def writable; @options << '--mode=0755'; self; end 21 22 def archive(filename) 23 filename = '-' if filename.nil?