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: