Open lejcik opened 1 year ago
I think i once wrote that code in question. Good catch! How about you send a patch to the mailinglist for that?
In the end it should behave like quilt does. So skip that empty line in case quilt would also skip. Or maybe stop there, or throw some sort of special error.
We also have test-cases which could be extended to have a series file with such an empty line, and assertions that we do "the right thing" as quilt users would expect.
Thank you for a quick reaction.
Ok, I'll prepare a patch which will fix this issue, also I'll cover such case in the tests. I think this is nothing difficult also for a non-python developer 🙂
I'll be back in a few days, I need to find some spare time to do that. As suggested, I'll send the patch to the mailing list...
Thanks for taking care! Feel free to cc me "henning.schild@siemens.com" when you send your patches to the list.
And thanks for the report already, it seems like a pitfall worth fixing.
Hi all,
I've got a confusing error when I tried to start KAS on my build system:
It took me a while to find what does this error mean.
FileNotFoundError
is confusing, also the path.../quilt/
exists. The problem was with.../quilt/series
file, as by mistake we've added an empty line to it. Its content is like here:KAS joins the
.../quilt/
path with the patch file names that it reads from theseries
file. However, in the case the line is empty, it joins path with empty string, and tries to open it as a file, what fails onFileNotFoundError
.I'd suggest to add a condition that will ignore the empty lines, similarly as it does with
#
comments inrepos.py:320
:if line.startswith('#'):
We are on the latest version:
kas 3.2.3 (configuration format version 13, earliest compatible version 1)
BR, Vilo