diff options
author | William Giokas <1007380@gmail.com> | 2012-12-13 09:56:11 -0600 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-03 12:03:10 +1000 |
commit | fe0586e2400aa078f0b974ef8acc541ad9e95140 (patch) | |
tree | 0e63ef5ee2b2783f6d887adead89c531f40c7c1a /scripts | |
parent | b455bbc91db5a4cde0e6d581fa323cc8fb5b66df (diff) |
makepkg: Print out full version on pkgver update
When building sources with a pkgver function, makepkg will print out the
original version before pkgver() is run, claiming that that is the
package that will be built. This patch simply re-prints the output
later, after pkgver() has been run so people can see which package they
are actually building.
Signed-off-by: William Giokas <1007380@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ceaab612..ebc24f70 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -700,6 +700,8 @@ update_pkgver() { @SEDINPLACE@ "s/^pkgver=[^ ]*/pkgver=$newpkgver/" "$BUILDFILE" @SEDINPLACE@ "s/^pkgrel=[^ ]*/pkgrel=1/" "$BUILDFILE" source "$BUILDFILE" + local fullver=$(get_full_version) + msg "$(gettext "Updated version: %s")" "$pkgbase $fullver" else warning "$(gettext "%s is not writeable -- pkgver will not be updated")" \ "$BUILDFILE" |