summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src2/Test.java
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2022-09-10 22:43:09 (GMT)
committerMats Wichmann <mats@linux.com>2022-09-12 13:53:56 (GMT)
commitf80095b86330115c0daadf22452f08935f02b76c (patch)
tree510a18775edfc43b2a1b0d0d2ed18458e11133d4 /test/Java/java_version_image/src2/Test.java
parentc9f4d9ec1ee41b9d558f6d0f13fe2e756ee52b6a (diff)
downloadSCons-f80095b86330115c0daadf22452f08935f02b76c.zip
SCons-f80095b86330115c0daadf22452f08935f02b76c.tar.gz
SCons-f80095b86330115c0daadf22452f08935f02b76c.tar.bz2
Handle a list as source in Copy
Copy (in the copy_func()) unconditionally converts the source argument to a string. This breaks the case where it was passed as a list - it should remain a list with the members converted to string, rather than being a single string. We assume a list source is supported, since the code just a few lines lower down detects a list and iterates through it. A test is added in test/Copy-Action.py to try to detect this case - it fails before the change and passes after. With the change to make a list argument work, found that the message printed by the matching strfunction (originally a lambda) needed the same adjustment, if the caller did not supply a list that was already strings (e.g. a list of Nodes, as from calling Glob()). Fixed up. At the same time, did some fiddling with the other Action Functions. Chmod had not been adjusted to emit the new Python standard for octal values (0o755 instead of 0755) - the change is only for the message, not for the function, but required aligning the test with the new format. Added some docstrings. Fixes #3009 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src2/Test.java')
0 files changed, 0 insertions, 0 deletions