ilbers / isar

Integration System for Automated Root filesystem generation
Other
177 stars 72 forks source link

sources.list empty line results in debootstrap error #57

Open svanschu opened 5 years ago

svanschu commented 5 years ago

I had the error that debootstrap is called with to less values (see image) After a while I noticed that I had a empty line at the end of my sources.list file. Deleting this line fixed the issue.

The script reads every line, if it's empty or not.

Two possibility

  1. raise a worthy error message, which states the real problem
  2. just check if a line is empty and ignore empty lines ...

Reproduce: Add empty lines to your sources.list for debootstrap and you should run into the error.

image

https://github.com/ilbers/isar/blob/b6ac71a53eb33b4e777480be557e1220a21c7fa2/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc#L230