Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#46800 - [makepkg] Always update pkgver with pkgver()

Attached to Project: Pacman
Opened by Link Mauve (linkmauve) - Monday, 19 October 2015, 14:27 GMT
Last edited by Allan McRae (Allan) - Thursday, 31 December 2015, 10:09 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.2.1
Due in Version 5.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Sometimes the user updated the revision in src manually, in this case calling `makepkg -e` won’t run pkgver() to set the pkgver variable to the current version.

Additional info:
* package version(s)
pacman 4.1.2-4

Steps to reproduce:
- Get a development PKGBUILD
- Run `makepkg -o` to clone the repository in src/
- Commit something there, to change the VCS revision
- Run `makepkg -e`

Expected result:
The package created would have a pkgver corresponding to the actual source, instead of the one that got cloned at first.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 31 December 2015, 10:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 8454daa7