diff options
author | Andrei Pavel <andrei@isc.org> | 2023-11-13 11:04:34 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2023-11-13 11:04:34 +0100 |
commit | 60e92acc095e56f0f4db5281e850d6c3879ca71d (patch) | |
tree | dc34d4b52d13e2fc31055c87803462005542d0ac /hammer.py | |
parent | [#2969] add tex-gyre back to hammer for debian (diff) | |
download | kea-60e92acc095e56f0f4db5281e850d6c3879ca71d.tar.xz kea-60e92acc095e56f0f4db5281e850d6c3879ca71d.zip |
[#3147] trivial hammer fix: don't move files
Don't move files to themselves.
Solves error: mv: 'kea-pkg/isc-kea-2.5.4-r20231113065823.apk' and
'kea-pkg/isc-kea-2.5.4-r20231113065823.apk' are the same file
Diffstat (limited to 'hammer.py')
-rwxr-xr-x | hammer.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2519,8 +2519,9 @@ def _build_native_pkg(system, revision, features, tarball_path, env, check_times elif system in ['fedora', 'centos', 'rhel']: execute('mv pkgs/* %s' % pkgs_dir) elif system in ['alpine']: - #execute('mv kea-src/* %s' % pkgs_dir) - execute('mv kea-pkg/* %s' % pkgs_dir) + # Don't move files if the source and the target locations are the same. + if pkgs_dir != 'kea-pkg': + execute('mv kea-pkg/* %s' % pkgs_dir) elif system in ['arch']: pass else: |