/[gli]/branches/overhaul/src/GLIArchitectureTemplate.py
Gentoo

Diff of /branches/overhaul/src/GLIArchitectureTemplate.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1280 Revision 1288
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.
6Gentoo Linux Installer 6Gentoo Linux Installer
7 7
8$Id: GLIArchitectureTemplate.py,v 1.258 2006/02/07 02:05:38 agaffney Exp $ 8$Id: GLIArchitectureTemplate.py,v 1.259 2006/02/09 22:37:23 agaffney Exp $
9 9
10The ArchitectureTemplate is largely meant to be an abstract class and an 10The ArchitectureTemplate is largely meant to be an abstract class and an
11interface (yes, it is both at the same time!). The purpose of this is to create 11interface (yes, it is both at the same time!). The purpose of this is to create
12subclasses that populate all the methods with working methods for that architecture. 12subclasses that populate all the methods with working methods for that architecture.
13The only definitions that are filled in here are architecture independent. 13The only definitions that are filled in here are architecture independent.
252 syspkgs = open("/usr/livecd/systempkgs.txt", "r") 252 syspkgs = open("/usr/livecd/systempkgs.txt", "r")
253 systempkgs = syspkgs.readlines() 253 systempkgs = syspkgs.readlines()
254 syspkgs.close() 254 syspkgs.close()
255 except: 255 except:
256 raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Could not open /usr/livecd/systempkgs.txt") 256 raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Could not open /usr/livecd/systempkgs.txt")
257
258 # Pre-create /lib (and possible /lib32 and /lib64)
259 if os.path.islink("/lib") and os.readlink("/lib").startswith("/lib64"):
260 if self._debug: self._logger.log("DEBUG: unpack_stage_tarball(): precreating /lib64 dir and /lib -> /lib64 symlink because glibc/portage sucks")
261 if not GLIUtility.exitsuccess(GLIUtility.spawn("mkdir " + self._chroot_dir + "/lib64 && ln -s /lib64 " + self._chroot_dir + "/lib")):
262 raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Could not precreate /lib64 dir and /lib -> /lib64 symlink")
263
257 syspkglen = len(systempkgs) 264 syspkglen = len(systempkgs)
258 for i, pkg in enumerate(systempkgs): 265 for i, pkg in enumerate(systempkgs):
259 pkg = pkg.strip() 266 pkg = pkg.strip()
260 self.notify_frontend("progress", (float(i) / (syspkglen+1), "Copying " + pkg + " (" + str(i+1) + "/" + str(syspkglen) + ")")) 267 self.notify_frontend("progress", (float(i) / (syspkglen+1), "Copying " + pkg + " (" + str(i+1) + "/" + str(syspkglen) + ")"))
261 self._portage.copy_pkg_to_chroot(pkg, True, ignore_missing=True) 268 self._portage.copy_pkg_to_chroot(pkg, True, ignore_missing=True)

Legend:
Removed from v.1280  
changed lines
  Added in v.1288

  ViewVC Help
Powered by ViewVC 1.1.20