From 60e92acc095e56f0f4db5281e850d6c3879ca71d Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Mon, 13 Nov 2023 12:04:34 +0200 Subject: [#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 --- hammer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hammer.py') diff --git a/hammer.py b/hammer.py index f4556d8c1d..a4f08c246d 100755 --- a/hammer.py +++ b/hammer.py @@ -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: -- cgit v1.2.3