Improve handling of file which should be copied into the image
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 6 Jun 2018 12:57:52 +0000 (14:57 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 6 Jun 2018 12:57:52 +0000 (14:57 +0200)
commitf010720b363975c7b5a3799cef94ba8a9aa423ff
tree723fd0e1179c30c0f965ae1a351e115a58f18542
parent5ff14f2d89cef3aef0358732ea6296902605cda2
Improve handling of file which should be copied into the image

We now check if a the file or directory exists and throw an exception
when not. We also handle absolute and relativ paths in the right way.

Fixes: #11748
Fixes: #11747

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/test.py