FS#45456 - [namcap] incorrect warning when using ${CARCH} == "i686"

Attached to Project: Arch Linux
Opened by Lone_Wolf (Lone_Wolf) - Wednesday, 24 June 2015, 17:04 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 26 June 2015, 01:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Namcap 3.2.5-2


if [[ ${CARCH} == "i686" ]]; then
_lib32dir="lib"
else
_lib32dir="lib32"
mkdir -p "${pkgdir}"/usr/"${_lib32dir}"
fi

The above code in a PKGBUILD results in an incorrect warning :

PKGBUILD (cndrvcups-common-lb) W: Reference to i686 should be changed to $CARCH
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 26 June 2015, 01:57 GMT
Reason for closing:  Fixed
Comment by Kyle Keen (keenerd) - Thursday, 25 June 2015, 16:54 GMT
Fixed in commit 00e3c4b72
Comment by Kyle Keen (keenerd) - Thursday, 25 June 2015, 19:12 GMT
Partial duplicate of  FS#43228 

Loading...