packaging_rake_tasks 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/tarball.rake +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a4db7a7b9611675325eb112c8dcfb9141fb6da0
|
4
|
+
data.tar.gz: dd8c0e29793478abb3630dd8a3734049d1eb64d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9af86d16cff3fa504dff040d25a285d8a008b16be9a700bed39e17d49b61fd640217af74a2dec51b0a0956034197ebd2448d0bff6038cd7d7a9bac5bb367a9d
|
7
|
+
data.tar.gz: eb74212dcb517dc6c641b8dc1580e11f59476c8a6a2b246bed50ebbe20b477c8f78852f5647f15cb6b8ed5b2f6a1996c1febae46768644ddd94e62fceb176aed
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
data/lib/tasks/tarball.rake
CHANGED
@@ -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
|
-
"--
|
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
|