FS#35754 - update_pkgver() should properly fail when sed returns nonzero exit code
Attached to Project:
Pacman
Opened by Zack Buhman (buhman) - Tuesday, 11 June 2013, 07:30 GMT
Last edited by Allan McRae (Allan) - Tuesday, 15 October 2013, 02:47 GMT
Opened by Zack Buhman (buhman) - Tuesday, 11 June 2013, 07:30 GMT
Last edited by Allan McRae (Allan) - Tuesday, 15 October 2013, 02:47 GMT
|
Details
Summary and Info:
update_pkgver() does not check to make sure @SEDINPLACE@ on line 813 actually succeeds. This causes a seemingly successful build, but lacking a rather important pkgver bump. Admittedly a non-broken PKGBUILD would not cause this problem to begin with; but it would be quite useful for debugging. Steps to Reproduce: Attached is a sample PKGBUILD with a pkgver() that will pass check_pkgver(), but still result in an invalid pkgver and escape the sed on line 813 in scripts/makepkg.sh.in. Suggested fix included. |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 15 October 2013, 02:47 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 968486ec
Tuesday, 15 October 2013, 02:47 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 968486ec
PKGBUILD
error "$(gettext "Failure updating %s from %s to %s")"
"pkgver" "$pkgver" "$newpkgver"