summaryrefslogtreecommitdiff
path: root/pactest/pmpkg.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-12-29 11:24:57 -0600
committerDan McGee <dan@archlinux.org>2007-12-29 11:58:23 -0600
commitfbd88a8212e794899e75ecf44024777c5a58deb2 (patch)
tree4748aecb586075912c8cd3012d105118c8ed6a21 /pactest/pmpkg.py
parent01930400a5f40f4ea5e9cafeff00afff515d0a2c (diff)
downloadpacman-fbd88a8212e794899e75ecf44024777c5a58deb2.tar.xz
Remove .FILELIST generation from makepkg (and elsewhere)
This is something pacman can do on its own straight from the archive, and we will reduce the chance of problems occurring becuase of inproper FILELIST generation as we have had in the past with special characters in filenames. Once we remove it from makepkg. we can remove any usage of it from all of our other tools, including pacman, pactest, and contrib/ utilities. Note that removing it from pacman uncovered a few other bugs anyway, so this was probably a good move. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmpkg.py')
-rwxr-xr-xpactest/pmpkg.py20
1 files changed, 2 insertions, 18 deletions
diff --git a/pactest/pmpkg.py b/pactest/pmpkg.py
index 56cb26f6..3ee58156 100755
--- a/pactest/pmpkg.py
+++ b/pactest/pmpkg.py
@@ -163,25 +163,9 @@ class pmpkg:
mkinstallfile(".INSTALL", self.install)
targets += " .INSTALL"
- # .FILELIST
+ # package files
if self.files:
- # generate a filelist
- filelist = []
- current = ""
- for path, dirs, files in os.walk("."):
- # we have to strip the './' portion from the path
- # and add a newline to each entry.
- current = os.path.join(path, "")[2:]
- if len(current) != 0:
- filelist.append(current + "\n")
- for file in files:
- # skip .PKGINFO, etc.
- if(not file.startswith(".")):
- filelist.append(os.path.join(path, file)[2:] + "\n")
- f = open('.FILELIST', 'w')
- f.writelines(filelist)
- f.close()
- targets += " .FILELIST *"
+ targets += " *"
#safely create the dir
mkdir(os.path.dirname(self.path))