FS#9240 - namcap "$package.pkg.tar.gz is not a package" error

Attached to Project: Arch Linux
Opened by Ray Rashif (schivmeister) - Thursday, 17 January 2008, 06:33 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 17 January 2008, 11:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Error: $package.pkg.tar.gz is not a package
Traceback (most recent call last):
File "/usr/bin/namcap", line 132, in <module>
for j in pkgtar.getmembers():
AttributeError: 'int' object has no attribute 'getmembers'

The above is the output for every single package I've built since upgrading pacman. >>> Despite this, pacman is able to add them as usual, and namcap on PKGBUILDS is ok. <<< I have tried re-installing both, but to no avail. I believe this has something to do with the new packaging standards of makepkg, but I'm not qualified enough to verify that. The relevant section of namcap:

if pkg.type() == "tarball":
if pkg.prereq() == "extract":
# If it's not extracted, then extract it and then analyze the package
if not extracted:
os.mkdir(sandbox_directory)
for j in pkgtar.getmembers():
pkgtar.extract(j, sandbox_directory)
extracted = 1

Interestingly, in makepkg.conf:

PKGEXT='.pkg.tar.gz'

So this should not be a case of unrecognized type, but apparently 'getmembers' is not valid anymore..?
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Thursday, 17 January 2008, 11:57 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Thursday, 17 January 2008, 07:29 GMT
Try upgrading to namcap 2.1, this is caused by the change in package format introduced with pacman 3.1 (.FILELIST is no longer in the package).
Comment by Ray Rashif (schivmeister) - Thursday, 17 January 2008, 09:24 GMT
thank you, didn't notice namcap update as i'm always a day late to updates due to server synchronization issues.

Loading...