diff mbox

[pacman-dev] makepkg: always write pkgbase

Message ID 20170706033022.17350-1-allan@archlinux.org
State Accepted, archived
Headers show

Commit Message

Allan McRae July 6, 2017, 3:30 a.m. UTC
There is little savings in only writing pkgbase when different to pkgname, and
it makes determining the pkgbase by parsing .PKGINFO slightly easier. Lets just
write it...

Signed-off-by: Allan McRae <allan@archlinux.org>
---
 scripts/makepkg.sh.in | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox

Patch

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f9872355..90f52abe 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -638,9 +638,7 @@  write_pkginfo() {
 	printf "# using %s\n" "$(fakeroot -v)"
 
 	write_kv_pair "pkgname" "$pkgname"
-	if (( SPLITPKG )) || [[ "$pkgbase" != "$pkgname" ]]; then
-		write_kv_pair "pkgbase" "$pkgbase"
-	fi
+	write_kv_pair "pkgbase" "$pkgbase"
 
 	local fullver=$(get_full_version)
 	write_kv_pair "pkgver" "$fullver"