FS#34591 - [pyalpm][namcap] Gives incorect warnings for pacman 4.1

Attached to Project: Arch Linux
Opened by Eric Belanger (Snowman) - Thursday, 04 April 2013, 00:51 GMT
Last edited by Eric Belanger (Snowman) - Monday, 15 April 2013, 23:02 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description:

$ namcap PKGBUILD *x86_64.pkg.tar.xz
/usr/lib/python3.3/site-packages/pycman/config.py:130: InvalidSyntax: unable to parse /etc/pacman.conf, unrecognized option: 'Color'
warnings.warn(InvalidSyntax(f.name, 'unrecognized option', key))
/usr/lib/python3.3/site-packages/pycman/config.py:125: InvalidSyntax: unable to parse /etc/pacman.conf, unrecognized option: 'LocalFileSigLevel'
warnings.warn(InvalidSyntax(f.name, 'unrecognized option', key))
enlightenment W: File (.MTREE) exists in a non-standard directory.


Color and LocalFileSigLevel are new options in 4.1.
.MTREE is a new metadata file in 4.1.
This task depends upon

Closed by  Eric Belanger (Snowman)
Monday, 15 April 2013, 23:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  pyalpm 0.6.1-1
namcap 3.2.5-1
Comment by Jelle van der Waa (jelly) - Friday, 05 April 2013, 10:48 GMT
I made a patch which fixes the two warnings.
Comment by Eric Belanger (Snowman) - Friday, 05 April 2013, 22:35 GMT Comment by Rémy Oudompheng (remyoudompheng) - Sunday, 07 April 2013, 09:08 GMT
Eric's patch released in namcap 3.2.5.
Comment by Lone_Wolf (Lone_Wolf) - Monday, 08 April 2013, 10:30 GMT
the patch only seems to solve the .MTREE warning, not the other ones.

pacman 4.1.0-2 , namcap 3.2.5-1

run namcap on any PKGBUILD and this is the output :

namcap PKGBUILD
/usr/lib/python3.3/site-packages/pycman/config.py:130: InvalidSyntax: unable to parse /etc/pacman.conf, unrecognized option: 'Color'
warnings.warn(InvalidSyntax(f.name, 'unrecognized option', key))
/usr/lib/python3.3/site-packages/pycman/config.py:125: InvalidSyntax: unable to parse /etc/pacman.conf, unrecognized option: 'LocalFileSigLevel'
warnings.warn(InvalidSyntax(f.name, 'unrecognized option', key))

Comment by Jelle van der Waa (jelly) - Monday, 08 April 2013, 13:15 GMT
Well the patch isn't applied archlinux's package. That's why it doesn't work.

Loading...