Skip to content
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

Improvements and fixes for 950_copy_result_files (related to issue2137) #2147

Conversation

jsmeix
Copy link
Member

@jsmeix jsmeix commented May 23, 2019

Before output/default/950_copy_result_files.sh falsely errors out with

Could not copy '/usr/share/rear/conf/templates/RESULT_usage_FOO.txt'

cf. #2142 (comment)
when OUTPUT=FOO is used where no
usr/share/rear/conf/templates/RESULT_usage_FOO.txt
exists.
Currently only
usr/share/rear/conf/templates/RESULT_usage_PXE.txt
usr/share/rear/conf/templates/RESULT_usage_RAMDISK.txt
usr/share/rear/conf/templates/RESULT_usage_ISO.txt
usr/share/rear/conf/templates/RESULT_usage_RAWDISK.txt
usr/share/rear/conf/templates/RESULT_usage_USB.txt
exists so that 950_copy_result_files.sh falsely errors out for all
other OUTPUT methods.

Additionally 950_copy_result_files.sh is now skipped
if RESULT_FILES is empty at the beginning of the script
because I think if there are no actual RESULT_FILES
it means there is no actual output and then is is useless
to copy VERSION and README and LOGFILE
to the output location.
I think it could be questionable if perhaps LOGFILE
should be always copied to the output location
even if there is no actual output.
If LOGFILE should be always copied to the output location
I can easily fix that.

@jsmeix jsmeix added the bug The code does not do what it is meant to do label May 23, 2019
@jsmeix jsmeix added this to the ReaR v2.6 milestone May 23, 2019
@jsmeix jsmeix self-assigned this May 23, 2019
@jsmeix
Copy link
Member Author

jsmeix commented May 23, 2019

Because this is needed by @mutable-dan
to proceed with his #2142
cf. #2142
I merge it right now.

If there are issues with this changes here
I will of course fix them.

@jsmeix jsmeix merged commit 20595ef into rear:master May 23, 2019
@jsmeix jsmeix deleted the improvements_and_fixes_for_950_copy_result_files_related_to_issue2137 branch May 23, 2019 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The code does not do what it is meant to do fixed / solved / done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant