| … | |
… | |
| 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.44 2006/02/20 17:11:41 agaffney Exp $ |
8 | $Id: GLIPortage.py,v 1.45 2006/02/20 17:20:57 agaffney Exp $ |
| 9 | """ |
9 | """ |
| 10 | |
10 | |
| 11 | import re |
11 | import re |
| 12 | import os |
12 | import os |
| 13 | import sys |
13 | import sys |
| … | |
… | |
| 291 | sys.exit(1) |
291 | sys.exit(1) |
| 292 | |
292 | |
| 293 | syspkglen = len(systempkgs) |
293 | syspkglen = len(systempkgs) |
| 294 | for i, pkg in enumerate(systempkgs): |
294 | for i, pkg in enumerate(systempkgs): |
| 295 | pkg = pkg.strip() |
295 | pkg = pkg.strip() |
|
|
296 | sys.stdout.write("Copying " + pkg + " (" + str(i+1) + "/" + str(syspkglen) + ")\r") |
| 296 | gliportage.copy_pkg_to_chroot(pkg, True, ignore_missing=True) |
297 | gliportage.copy_pkg_to_chroot(pkg, True, ignore_missing=True) |
| 297 | GLIUtility.spawn("cp /etc/make.conf " + chroot_dir + "/etc/make.conf") |
298 | GLIUtility.spawn("cp /etc/make.conf " + chroot_dir + "/etc/make.conf") |
| 298 | GLIUtility.spawn("ln -s `readlink /etc/make.profile` " + chroot_dir + "/etc/make.profile") |
299 | GLIUtility.spawn("ln -s `readlink /etc/make.profile` " + chroot_dir + "/etc/make.profile") |
| 299 | GLIUtility.spawn("cp -f /etc/inittab.old " + chroot_dir + "/etc/inittab") |
300 | GLIUtility.spawn("cp -f /etc/inittab.old " + chroot_dir + "/etc/inittab") |
| 300 | |
301 | |