diff options
author | Wlodek Wencel <wlodek@isc.org> | 2023-04-18 17:58:46 +0200 |
---|---|---|
committer | Wlodzimierz Wencel <wlodek@isc.org> | 2023-04-19 17:51:15 +0200 |
commit | c474c0981e9297dcc9c2b0433fa9264fb1c40ec4 (patch) | |
tree | 479ec5d9e776d9eaea5859438af33e825b7dab2e /hammer.py | |
parent | [#2836] hammer update for rhel 9 (diff) | |
download | kea-c474c0981e9297dcc9c2b0433fa9264fb1c40ec4.tar.xz kea-c474c0981e9297dcc9c2b0433fa9264fb1c40ec4.zip |
[#2836] remove unnecessary os.unlink
Diffstat (limited to 'hammer.py')
-rwxr-xr-x | hammer.py | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1078,7 +1078,6 @@ def _install_gtest_sources(): execute('sudo mkdir -p /usr/src') execute('sudo tar -C /usr/src -zxf ~/.hammer-tmp/gtest.tar.gz') execute(f'sudo ln -sf /usr/src/googletest-release-{gtest_version} /usr/src/googletest') - os.unlink('~/.hammer-tmp/gtest.tar.gz') execute('rm -rf ~/.hammer-tmp') @@ -2610,7 +2609,6 @@ def _install_vagrant(ver=RECOMMENDED_VAGRANT_VERSION, upgrade=False): cmd += 'https://releases.hashicorp.com/vagrant/%s/%s' % (ver, rpm) execute(cmd) execute('sudo rpm -i ~/.hammer-tmp/%s' % rpm) - os.unlink('~/.hammer-tmp/%s' % rpm) execute('rm -rf ~/.hammer-tmp') elif system in ['debian', 'ubuntu']: if upgrade: @@ -2621,7 +2619,6 @@ def _install_vagrant(ver=RECOMMENDED_VAGRANT_VERSION, upgrade=False): cmd += 'https://releases.hashicorp.com/vagrant/%s/%s' % (ver, deb) execute(cmd) execute('sudo dpkg -i ~/.hammer-tmp/%s' % deb) - os.unlink('~/.hammer-tmp/%s' % deb) execute('rm -rf ~/.hammer-tmp') elif system in ['arch']: pass |