diff options
author | Dan McGee <dan@archlinux.org> | 2007-12-29 18:24:57 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-29 18:58:23 +0100 |
commit | fbd88a8212e794899e75ecf44024777c5a58deb2 (patch) | |
tree | 4748aecb586075912c8cd3012d105118c8ed6a21 /pactest | |
parent | 01930400a5f40f4ea5e9cafeff00afff515d0a2c (diff) | |
download | pacman-fbd88a8212e794899e75ecf44024777c5a58deb2.tar.gz pacman-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')
-rwxr-xr-x | pactest/pmpkg.py | 20 |
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)) |