2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 09:57:41 +00:00

[#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
This commit is contained in:
Andrei Pavel 2023-11-13 12:04:34 +02:00
parent 1b4b3a6b87
commit 60e92acc09
No known key found for this signature in database
GPG Key ID: D4E804481939CB21

View File

@ -2519,8 +2519,9 @@ def _build_native_pkg(system, revision, features, tarball_path, env, check_times
elif system in ['fedora', 'centos', 'rhel']: elif system in ['fedora', 'centos', 'rhel']:
execute('mv pkgs/* %s' % pkgs_dir) execute('mv pkgs/* %s' % pkgs_dir)
elif system in ['alpine']: elif system in ['alpine']:
#execute('mv kea-src/* %s' % pkgs_dir) # Don't move files if the source and the target locations are the same.
execute('mv kea-pkg/* %s' % pkgs_dir) if pkgs_dir != 'kea-pkg':
execute('mv kea-pkg/* %s' % pkgs_dir)
elif system in ['arch']: elif system in ['arch']:
pass pass
else: else: