diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2017-08-28 13:28:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-31 17:41:41 +0100 |
commit | a8b9b3a5ae9cb781c141c76f83e1d962ae8cc3e2 (patch) | |
tree | 348b16795fae21bbacc84a75213bb04fe789fb09 | |
parent | dabbfe23de0615a958fac31b83684ade024cf17d (diff) | |
download | poky-a8b9b3a5ae9cb781c141c76f83e1d962ae8cc3e2.tar.gz |
package_manager.py: improve reproducibility
When creating Packages.gz, do not save the time stamp in the compressed
file metadata.
(From OE-Core rev: 693fc377aa0788825b921d1b7804f5b2eafec76f)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index ef06881311..5efb286f7b 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -232,7 +232,7 @@ class DpkgIndexer(Indexer): | |||
232 | 232 | ||
233 | cmd = "cd %s; PSEUDO_UNLOAD=1 %s packages . > Packages;" % (arch_dir, apt_ftparchive) | 233 | cmd = "cd %s; PSEUDO_UNLOAD=1 %s packages . > Packages;" % (arch_dir, apt_ftparchive) |
234 | 234 | ||
235 | cmd += "%s -fc Packages > Packages.gz;" % gzip | 235 | cmd += "%s -fcn Packages > Packages.gz;" % gzip |
236 | 236 | ||
237 | with open(os.path.join(arch_dir, "Release"), "w+") as release: | 237 | with open(os.path.join(arch_dir, "Release"), "w+") as release: |
238 | release.write("Label: %s\n" % arch) | 238 | release.write("Label: %s\n" % arch) |