-
Notifications
You must be signed in to change notification settings - Fork 154
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
Confusing error when KAS applies patches with quilt #96
Comments
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 "[email protected]" when you send your patches to the list. And thanks for the report already, it seems like a pitfall worth fixing. |
When kas applies patches and the 'series' file contains an empty line or whitespaces before comment, it fails on error FileNotFoundError, which has nothing to do with a file operation, it's only a parsing issue. This patch fixes issue with parsing the 'series' file. Moreover, test files were updated to cover such case. siemens#96 Signed-off-by: Viliam Lejcik <[email protected]>
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
The text was updated successfully, but these errors were encountered: