-
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue 1876 - Updated the batch file to replace "%" in arguments with an arbitrary … #2310
Fix for issue 1876 - Updated the batch file to replace "%" in arguments with an arbitrary … #2310
Conversation
…placeholder "##PC##" during the "collectargs" routine and then restoring the "%" signs prior to passing to the scancode executable Signed-off-by: Duncan Howe <[email protected]>
Hmm, maybe before trying to fix the logic to "collect all command line arguments in a variable" we should ask @pombredanne why this collecting is even necessary. More concretely, why don't we just use |
@Duncan-Howe Thank you ++ |
For reference #1876 |
@Duncan-Howe Do you mind to also update the changelog? |
@pombredanne What version number should I use as the heading for CHANGELOG or would vNext be OK? |
If the aim is to forward all args passed to the batch file, then IMO |
So, @Duncan-Howe, would you mind giving the |
Added note to CHANGELOG.rst Signed-off-by: Duncan Howe <[email protected]>
7a028e5
to
3864f0f
Compare
@sschuberth Sure thing - I will refactor the batch file to use "%*" to pass the arguments through |
@Duncan-Howe Yes, that would work fine 👍 |
…canning-with-percent-on-Windows # Conflicts: # CHANGELOG.rst
I would call this me doing cargo culting at its best :D |
…ents to simply pass "%*" into the scancode executable Added "*.orig" to .gitignore Signed-off-by: Duncan Howe <[email protected]>
Signed-off-by: Duncan Howe <[email protected]>
Updated scancode.bat to remove a number of lines of code that weren't really doing much :-) |
The updated batch file seems to perform in exactly the same way as previously when executed from ORT and produces the same result files for my own application scans |
Great! Thanks a lot for getting rid of this cruft in the batch file 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and merging now!
Thank you ++
…placeholder "##PC##" during the "collectargs" routine and then restoring the "%" signs prior to passing to the scancode executable
Signed-off-by: Duncan Howe [email protected]
Fixes #1876
Tasks
Run tests locally to check for errors.