diff options
author | Allan McRae <allan@archlinux.org> | 2017-07-06 05:27:22 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-07-06 05:27:22 +0200 |
commit | 1c8b3f2562bb31e52ad0c5fd9eb139d9dda1873e (patch) | |
tree | d88983fc15b9c7d5a90007a946d69e485b232fbc /scripts | |
parent | d170c4580cba6af1ec50411f3b1e0621165c6300 (diff) | |
download | pacman-1c8b3f2562bb31e52ad0c5fd9eb139d9dda1873e.tar.gz pacman-1c8b3f2562bb31e52ad0c5fd9eb139d9dda1873e.tar.xz |
makepkg: always write pkgbase
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
1 files changed, 1 insertions, 3 deletions
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" |