| … | |
… | |
| 3 | # This source code is distributed under the terms of version 2 of the GNU |
3 | # This source code is distributed under the terms of version 2 of the GNU |
| 4 | # General Public License as published by the Free Software Foundation, a copy |
4 | # General Public License as published by the Free Software Foundation, a copy |
| 5 | # of which can be found in the main directory of this project. |
5 | # of which can be found in the main directory of this project. |
| 6 | Gentoo Linux Installer |
6 | Gentoo Linux Installer |
| 7 | |
7 | |
| 8 | $Id: GLIPortage.py,v 1.50 2006/03/05 04:16:04 agaffney Exp $ |
8 | $Id: GLIPortage.py,v 1.51 2006/03/05 06:21:21 agaffney Exp $ |
| 9 | """ |
9 | """ |
| 10 | |
10 | |
| 11 | import re |
11 | import re |
| 12 | import os |
12 | import os |
| 13 | import sys |
13 | import sys |
| … | |
… | |
| 139 | # Create list of files for tar to work with from CONTENTS file in vdb entry |
139 | # Create list of files for tar to work with from CONTENTS file in vdb entry |
| 140 | entries = self.parse_vdb_contents("/var/db/pkg/" + package + "/CONTENTS") |
140 | entries = self.parse_vdb_contents("/var/db/pkg/" + package + "/CONTENTS") |
| 141 | if not entries: |
141 | if not entries: |
| 142 | if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot(): no files for " + package + "...skipping tar and symlink fixup") |
142 | if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot(): no files for " + package + "...skipping tar and symlink fixup") |
| 143 | else: |
143 | else: |
| 144 | if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot: files for " + package + ": " + str(entries)) |
144 | # if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot: files for " + package + ": " + str(entries)) |
| 145 | try: |
145 | try: |
| 146 | tarfiles = open("/tmp/tarfilelist", "w") |
146 | tarfiles = open("/tmp/tarfilelist", "w") |
| 147 | for entry in entries: |
147 | for entry in entries: |
| 148 | parts = entry.split(" ") |
148 | parts = entry.split(" ") |
| 149 | # # Hack for symlink crappiness |
149 | # # Hack for symlink crappiness |