index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-12-29 11:24:57 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-29 11:58:23 -0600 |
commit | fbd88a8212e794899e75ecf44024777c5a58deb2 (patch) | |
tree | 4748aecb586075912c8cd3012d105118c8ed6a21 /pactest/pmpkg.py | |
parent | 01930400a5f40f4ea5e9cafeff00afff515d0a2c (diff) |
-rwxr-xr-x | pactest/pmpkg.py | 20 |
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)) |