FS#22174 - Cannot use pkgname variable in split package function
Attached to Project:
Pacman
Opened by Dan McGee (toofishes) - Tuesday, 21 December 2010, 16:11 GMT
Last edited by Allan McRae (Allan) - Thursday, 30 December 2010, 01:39 GMT
Opened by Dan McGee (toofishes) - Tuesday, 21 December 2010, 16:11 GMT
Last edited by Allan McRae (Allan) - Thursday, 30 December 2010, 01:39 GMT
|
Details
Summary and Info:
Found using makepkg-git, but probably broken in 3.4.x as well. Steps to Reproduce: * Build attached PKGBUILD * `bsdtar tf` two made packages, note same file in both: usr/share/licenses/testpkg1/LICENSE * Expected: testpkg1 license in one package, testpkg2 license in the other. Found as the root cause of |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 30 December 2010, 01:39 GMT
Reason for closing: Fixed
Additional comments about closing: http://projects.archlinux.org/users/alla n/pacman.git/commit/?id=eb939554
Thursday, 30 December 2010, 01:39 GMT
Reason for closing: Fixed
Additional comments about closing: http://projects.archlinux.org/users/alla n/pacman.git/commit/?id=eb939554
We loop over the package_*() functions using the pkgname array. So to fix this, we need to take a "backup" copy of this array, loop over that overwriting pkgname with the current value as we and then restore pkgname at the end. This is probably a three line fix now we have a "run_split_packaging" function...