Skip to content

repo-add: handle lack of newline at end of .PKGINFO

Allan McRae requested to merge allan/repo-add-newline into master

Work around the final line not being parsed in .PKGINFO if there was a lack of newline at the end of the file. This could occur due to utilising a tool other than makepkg to create packages.

The missed line created a difference in the parsing of .PKGINFO between repo-add and pacman, causing packages to be seen as invalidwith pacman-6.1.

Signed-off-by: Allan McRae allan@archlinux.org

Merge request reports