summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2023-11-13 11:04:34 +0100
committerAndrei Pavel <andrei@isc.org>2023-11-13 11:04:34 +0100
commit60e92acc095e56f0f4db5281e850d6c3879ca71d (patch)
treedc34d4b52d13e2fc31055c87803462005542d0ac /hammer.py
parent[#2969] add tex-gyre back to hammer for debian (diff)
downloadkea-60e92acc095e56f0f4db5281e850d6c3879ca71d.tar.xz
kea-60e92acc095e56f0f4db5281e850d6c3879ca71d.zip
[#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
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py5
1 files changed, 3 insertions, 2 deletions
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: