]> git.ipfire.org Git - thirdparty/libvirt.git/commit
scripts: Fix reading list of files in mock-noinline.py
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Apr 2025 11:37:43 +0000 (13:37 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Apr 2025 12:35:29 +0000 (14:35 +0200)
commite1fdff61be0013aacb6906d3f2a20180b8024115
treebfc949bbd40bfcc60f8305ab849dc0fb775622dd
parentc19c8f199671b8915b51829960e4bf1a76ffc9d3
scripts: Fix reading list of files in mock-noinline.py

The mock-noinline.py script is fed list of files through its
stdin, each file on its own line. Unfortunately, the way the
script is written does nothing as the trailing newline character
prevents any .endswith() match. Strip each line of white spaces.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
scripts/mock-noinline.py