[gimp/wip/Jehan/incremental-win-installer-improvements] build: test.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/incremental-win-installer-improvements] build: test.
- Date: Mon, 28 Jun 2021 17:08:53 +0000 (UTC)
commit f75b047c0238833b87d9d47f1bbe478919371dba
Author: Jehan <jehan girinstud io>
Date: Mon Jun 28 15:07:47 2021 +0200
build: test.
build/windows/gitlab-ci/dll_link.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/build/windows/gitlab-ci/dll_link.py b/build/windows/gitlab-ci/dll_link.py
index 61528e7ed9..45e71e1a7f 100755
--- a/build/windows/gitlab-ci/dll_link.py
+++ b/build/windows/gitlab-ci/dll_link.py
@@ -14,6 +14,7 @@
# Windows environnment should be passed, here /winenv/.
import argparse
+import filecmp
import os
import subprocess
import re
@@ -35,6 +36,7 @@ bindir = 'bin'
# Main function
def main(binary, srcdir, destdir, debug):
+ sys.stdout.write("{} (INFO): searching for dependencies of {} in {}".format(os.path.basename(__file__),
binary, srcdir))
find_dependencies(binary, srcdir)
if args.debug:
print("Running in debug mode (no DLL moved)")
@@ -105,7 +107,17 @@ def copy_dlls(dll_list, srcdir, destdir):
for dll in dll_list:
full_file_name = os.path.join(srcdir, bindir, dll)
if os.path.isfile(full_file_name):
+ sys.stdout.write("{} (INFO): copying {} to {}".format(os.path.basename(__file__), full_file_name,
destbin))
+ dest_existed = False
+ if os.path.exists(os.path.join(destbin, dll)):
+ sys.stderr.write("WAAAAA: {} exists!".format(os.path.join(destbin, dll)))
+ dest_existed = True
shutil.copy(full_file_name, destbin)
+ if dest_existed:
+ if filecmp.cmp(full_file_name, os.path.join(destbin, dll), shallow=False):
+ sys.stderr.write("YEAH {} and {} are equal!".format( full_file_name, os.path.join(destbin, dll)))
+ else:
+ sys.stderr.write("OUPS {} and {} are different!".format(full_file_name, os.path.join(destbin,
dll)))
else:
sys.stderr.write("Missing DLL: {}\n".format(full_file_name))
sys.exit(os.EX_DATAERR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]