/[gli]/trunk/src/GLIPortage.py
Gentoo

Diff of /trunk/src/GLIPortage.py

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

Revision 1185 Revision 1188
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: GLIPortage.py,v 1.5 2005/12/25 05:06:35 agaffney Exp $ 8$Id: GLIPortage.py,v 1.6 2005/12/25 14:14:43 agaffney Exp $
9""" 9"""
10 10
11import os 11import os
12import re 12import re
13import GLIUtility 13import GLIUtility
94 if not self._grp_install: 94 if not self._grp_install:
95 del(os.environ['ROOT']) 95 del(os.environ['ROOT'])
96 return GLIUtility.spawn("emerge -p " + pkgs + r" | grep -e '^\[[a-z]' | cut -d ']' -f2 | sed -e 's:^ ::' -e 's: .\+$::'", chroot=self._chroot_dir, return_output=True)[1].split("\n") 96 return GLIUtility.spawn("emerge -p " + pkgs + r" | grep -e '^\[[a-z]' | cut -d ']' -f2 | sed -e 's:^ ::' -e 's: .\+$::'", chroot=self._chroot_dir, return_output=True)[1].split("\n")
97 os.environ['ROOT'] = self._chroot_dir 97 os.environ['ROOT'] = self._chroot_dir
98 else: 98 else:
99 return GLIUtility.spawn("../../runtimedeps.py " + pkgs, return_output=True)[1].split("\n")[:-1] 99 return GLIUtility.spawn("python ../../runtimedeps.py " + pkgs, return_output=True)[1].split("\n")[:-1]
100 100
101 def copy_pkg_to_chroot(self, package): 101 def copy_pkg_to_chroot(self, package):
102 symlinks = { '/bin/': '/mnt/livecd/bin/', '/boot/': '/mnt/livecd/boot/', '/lib/': '/mnt/livecd/lib/', 102 symlinks = { '/bin/': '/mnt/livecd/bin/', '/boot/': '/mnt/livecd/boot/', '/lib/': '/mnt/livecd/lib/',
103 '/opt/': '/mnt/livecd/opt/', '/sbin/': '/mnt/livecd/sbin/', '/usr/': '/mnt/livecd/usr/', 103 '/opt/': '/mnt/livecd/opt/', '/sbin/': '/mnt/livecd/sbin/', '/usr/': '/mnt/livecd/usr/',
104 '/etc/gconf/': '/usr/livecd/gconf/' } 104 '/etc/gconf/': '/usr/livecd/gconf/' }

Legend:
Removed from v.1185  
changed lines
  Added in v.1188

  ViewVC Help
Powered by ViewVC 1.1.20