Skip to content

Commit

Permalink
[#3147] trivial hammer fix: don't move files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
andrei-pavel committed Nov 13, 2023
1 parent 1b4b3a6 commit 60e92ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hammer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 60e92ac

Please sign in to comment.