| … | |
… | |
| 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.54 2006/07/10 05:56:31 agaffney Exp $ |
8 | $Id: GLIPortage.py,v 1.55 2006/09/13 16:50:23 agaffney Exp $ |
| 9 | """ |
9 | """ |
| 10 | |
10 | |
| 11 | import re |
11 | import re |
| 12 | import os |
12 | import os |
| 13 | import sys |
13 | import sys |
| … | |
… | |
| 49 | if self._debug: self._logger.log("get_deps(): checking to see if " + tmppkg + " is already in pkglist") |
49 | if self._debug: self._logger.log("get_deps(): checking to see if " + tmppkg + " is already in pkglist") |
| 50 | if not tmppkg in pkglist and not self.get_best_version_vdb_chroot("=" + tmppkg): |
50 | if not tmppkg in pkglist and not self.get_best_version_vdb_chroot("=" + tmppkg): |
| 51 | if self._debug: self._logger.log("get_deps(): adding " + tmppkg + " to pkglist") |
51 | if self._debug: self._logger.log("get_deps(): adding " + tmppkg + " to pkglist") |
| 52 | pkglist.append(tmppkg) |
52 | pkglist.append(tmppkg) |
| 53 | if self._debug: self._logger.log("get_deps(): pkglist is " + str(pkglist)) |
53 | if self._debug: self._logger.log("get_deps(): pkglist is " + str(pkglist)) |
|
|
54 | if not pkglist: |
|
|
55 | raise GLIException("GetDepListError", 'fatal', 'get_deps', "Dep list is empty. This usually means there is no portage tree in the chroot") |
| 54 | return pkglist |
56 | return pkglist |
| 55 | |
57 | |
| 56 | def parse_vdb_contents(self, file): |
58 | def parse_vdb_contents(self, file): |
| 57 | entries = [] |
59 | entries = [] |
| 58 | try: |
60 | try: |