>From 4c181d7db0e3c747a3dd44a1246c44c143ca2f40 Mon Sep 17 00:00:00 2001
From: Chantry Xavier <shiningxc@gmail.com>
Date: Sat, 5 Jan 2008 17:38:03 +0100
Subject: [PATCH] Remove the check of the .FILELIST file.

makepkg 3.1 doesn't ship the .FILELIST file anymore. pacman now gets the
file list by reading the whole archive.

It looks like the files attribute isn't even used, namcap apparently still
works as expected without it. Otherwise, it should be simple enough to
generate it.

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
---
 namcap.py |    3 ---
 pacman.py |    7 -------
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/namcap.py b/namcap.py
index feb59ce..fb623d9 100755
--- a/namcap.py
+++ b/namcap.py
@@ -50,9 +50,6 @@ def verify_package(filename):
 		if not '.PKGINFO' in tar.getnames():
 			tar.close()
 			return 0
-		if not '.FILELIST' in tar.getnames():
-			tar.close()
-			return 0
 	except IOError:
 		if tar:
 			tar.close()
diff --git a/pacman.py b/pacman.py
index 9e43456..75ec8ea 100644
--- a/pacman.py
+++ b/pacman.py
@@ -82,13 +82,6 @@ def load(package, root=None):
 				if rhs != '':
 					ret.__dict__.setdefault(lhs, []).append(rhs)
 
-		if not '.FILELIST' in pkgtar.getnames():
-			return None
-		filelist = pkgtar.extractfile('.FILELIST')
-		for i in filelist.readlines():
-			if not hasattr(ret, 'files'):
-				ret.files = []
-			ret.files.append(i[:-1])
 		pkgtar.close()
 		ret.process()
 		return ret
-- 
1.5.3.7

