LMC: change the name of the andconda log files
anaconda and lmc both have a program.log so we are losing one. This patch adds a anaconda- prefix to the logfile for files in the anaconda directory so that we get all files and know which files are from lmc and which are from anaconda. Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
15bc2f1cee
commit
6f53e4f1aa
1 changed files with 5 additions and 0 deletions
|
|
@ -3062,6 +3062,11 @@ class LiveMediaTask(ImageTask):
|
|||
filepath = os.path.join(logdir, filename)
|
||||
if os.stat(filepath).st_size == 0:
|
||||
continue
|
||||
# avoid file duplication between directories by prefixing anaconda logs
|
||||
if logdir.endswith('anaconda'):
|
||||
self.uploadFile(os.path.join(filepath), remoteName='anaconda-%s' % filename)
|
||||
continue
|
||||
|
||||
self.uploadFile(os.path.join(filepath))
|
||||
|
||||
if rv:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue