[pacman-dev] [PATCH] makepkg: add missing newline from libprovides output

Dave Reisner dreisner at archlinux.org
Sun Apr 8 18:32:13 EDT 2012


This was a small oversight from 1917c845 which causes makepkg to write
provides entries to the .PKGINFO file improperly, e.g.

  provides = systemdlibsystemdudev=999

Add a newline in the printf format to ensure that these are spaced
appropriately.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
Dan: this is on my libdeps branch for lack of a better place to put it.

 scripts/makepkg.sh.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index ffa3a34..3345cbd 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1145,7 +1145,7 @@ find_libprovides() {
 		fi
 	done
 
-	printf "%s" "${libprovides[@]}"
+	printf '%s\n' "${libprovides[@]}"
 }
 
 check_license() {
-- 
1.7.10



More information about the pacman-dev mailing list