diff options
author | aiuto <aiuto@google.com> | 2022-02-14 15:21:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 15:21:57 -0500 |
commit | d915e26874383c36f83cd5795b2ac6f2a19d543f (patch) | |
tree | fce94f5c85f23ce189710a873656df0f77823dae /distro | |
parent | cce90a09cef0acc4e5e224631caf73dff77bd382 (diff) | |
download | bazelbuild-rules_pkg-d915e26874383c36f83cd5795b2ac6f2a19d543f.tar.gz |
Stop archive writer from always adding './' as a root path. (#540)
* Stop archive writer from always adding './' as a root path.
- clean up tests appropriately
- remove achive.add_dir because we do not use it
This is a precursor change to removing the unwanted leading ./ from tar writers.
See #50, #531
Diffstat (limited to 'distro')
-rw-r--r-- | distro/packaging_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distro/packaging_test.py b/distro/packaging_test.py index df1e1bd..06a825e 100644 --- a/distro/packaging_test.py +++ b/distro/packaging_test.py @@ -81,7 +81,7 @@ class PackagingTest(unittest.TestCase): # TODO(aiuto): Find tar in a disciplined way content = subprocess.check_output( ['tar', 'tzf', 'bazel-bin/dummy_tar.tar.gz']) - self.assertEqual(b'./\n./BUILD\n', content) + self.assertEqual(b'./BUILD\n', content) if __name__ == '__main__': |