packaging_rake_tasks 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/tarball.rake +6 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5c3be51eb199420402e13a46fb9a480db7eb8b4
4
- data.tar.gz: 19d6e1f4f32073eda4d3639fb5cae0cc02c901f6
3
+ metadata.gz: 2a4db7a7b9611675325eb112c8dcfb9141fb6da0
4
+ data.tar.gz: dd8c0e29793478abb3630dd8a3734049d1eb64d5
5
5
  SHA512:
6
- metadata.gz: 0a94d5658ae03230e3ba53d7576ac7b89a8f5fb641d4d310a073fac4c3ba06d862e98a044496e0cca4d3f49fe6cab7fb611125db28f9a38a41c77c179f2b09ca
7
- data.tar.gz: 3c3304cd78267662090fdbce54874fc9db1f18182aaa4657381f17633eb0f7089bd063de8740acf402bbe15eeeaf659db8be9d3b337696196c02e0d4588118a0
6
+ metadata.gz: b9af86d16cff3fa504dff040d25a285d8a008b16be9a700bed39e17d49b61fd640217af74a2dec51b0a0956034197ebd2448d0bff6038cd7d7a9bac5bb367a9d
7
+ data.tar.gz: eb74212dcb517dc6c641b8dc1580e11f59476c8a6a2b246bed50ebbe20b477c8f78852f5647f15cb6b8ed5b2f6a1996c1febae46768644ddd94e62fceb176aed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
1
+ 1.4.3
@@ -101,14 +101,17 @@ def build_tarball
101
101
  # set the file time stamps according to the latest commit
102
102
  mtime = `git show -s --format=%ci`.chomp
103
103
  # For the reproducible output:
104
+ # - sort the files (in a locale independent way, use the NULL separator to
105
+ # correctly process also the file names containing a new line)
106
+ # Note: tar >= 1.28 supports "--sort=name" option, unfortunately
107
+ # Leap 42.3 and SLES12-SP3 contain version 1.27.1
104
108
  # - use the GNU format (the default POSIX format contains some time stamps)
105
- # - sort the files (in a locale independent way)
106
109
  # - set the owner and group to "root"
107
110
  # - set the fixed modification time
108
111
  sh("cd #{Shellwords.escape(Packaging::Configuration.instance.package_dir)} && " \
112
+ "find #{Shellwords.escape(package_file_name)} -type f -print0 | LC_ALL=C sort -z | " \
109
113
  "tar -c -j -f #{Shellwords.escape(package_file_name)}.tar.bz2 --format=gnu " \
110
- "--sort=name --owner=root --group=root --mtime=#{Shellwords.escape(mtime)} " \
111
- "#{Shellwords.escape(package_file_name)}")
114
+ "--owner=root --group=root --mtime=#{Shellwords.escape(mtime)} --null --files-from -")
112
115
  end
113
116
 
114
117
  # vim: ft=ruby
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging_rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger