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
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: