/[gli]/branches/qs/src/GLIPortage.py
Gentoo

Diff of /branches/qs/src/GLIPortage.py

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

Revision 1222 Revision 1223
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.31 2006/01/06 16:46:16 agaffney Exp $ 8$Id: GLIPortage.py,v 1.32 2006/01/07 17:12:00 agaffney Exp $
9""" 9"""
10 10
11import re 11import re
12import os 12import os
13import GLIUtility 13import GLIUtility
173# return portage.best(tree.match(package)) 173# return portage.best(tree.match(package))
174 174
175 def emerge(self, packages, add_to_world=True): 175 def emerge(self, packages, add_to_world=True):
176 if isinstance(packages, str): 176 if isinstance(packages, str):
177 packages = packages.split() 177 packages = packages.split()
178 self._cc.addNotification("progress", (0, "Calculating dependencies for " + " ".join(packages)))
178 pkglist = self.get_deps(packages) 179 pkglist = self.get_deps(packages)
179 if self._debug: self._logger.log("install_packages(): pkglist is " + str(pkglist)) 180 if self._debug: self._logger.log("install_packages(): pkglist is " + str(pkglist))
180 for i, pkg in enumerate(pkglist): 181 for i, pkg in enumerate(pkglist):
181 if self._debug: self._logger.log("install_packages(): processing package " + pkg) 182 if self._debug: self._logger.log("install_packages(): processing package " + pkg)
182 self._cc.addNotification("progress", (float(i) / len(pkglist), "Emerging " + pkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")")) 183 self._cc.addNotification("progress", (float(i) / len(pkglist), "Emerging " + pkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")"))

Legend:
Removed from v.1222  
changed lines
  Added in v.1223

  ViewVC Help
Powered by ViewVC 1.1.20