/[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 1675 Revision 1700
251 251
252 def emerge(self, packages, grp_install=False, add_to_world=True): 252 def emerge(self, packages, grp_install=False, add_to_world=True):
253 if isinstance(packages, str): 253 if isinstance(packages, str):
254 packages = packages.split() 254 packages = packages.split()
255 self._cc.addNotification("progress", (0, "Calculating dependencies for " + " ".join(packages))) 255 self._cc.addNotification("progress", (0, "Calculating dependencies for " + " ".join(packages)))
256 pkglist = self.get_deps(packages) 256 pkglist = self.get_deps(packages, grp_install)
257 if self._debug: self._logger.log("install_packages(): pkglist is " + str(pkglist)) 257 if self._debug: self._logger.log("install_packages(): pkglist is " + str(pkglist))
258 for i, pkg in enumerate(pkglist): 258 for i, pkg in enumerate(pkglist):
259 if not pkg: continue 259 if not pkg: continue
260 if self._debug: self._logger.log("install_packages(): processing package " + pkg) 260 if self._debug: self._logger.log("install_packages(): processing package " + pkg)
261 self._cc.addNotification("progress", (float(i) / len(pkglist), "Emerging " + pkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")")) 261 self._cc.addNotification("progress", (float(i) / len(pkglist), "Emerging " + pkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")"))
379 elif mode == "grp": 379 elif mode == "grp":
380 for pkg in grp_packages: 380 for pkg in grp_packages:
381 if not gliportage.get_best_version_vdb(pkg): 381 if not gliportage.get_best_version_vdb(pkg):
382 print "Package " + pkg + " is not available for install from the LiveCD" 382 print "Package " + pkg + " is not available for install from the LiveCD"
383 continue 383 continue
384 pkglist = gliportage.get_deps(pkg) 384 pkglist = gliportage.get_deps(pkg, True)
385 for i, tmppkg in enumerate(pkglist): 385 for i, tmppkg in enumerate(pkglist):
386 print "Copying " + tmppkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")" 386 print "Copying " + tmppkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")"
387 gliportage.copy_pkg_to_chroot(tmppkg) 387 gliportage.copy_pkg_to_chroot(tmppkg)
388 gliportage.add_pkg_to_world(pkg) 388 gliportage.add_pkg_to_world(pkg)
389 print "GRP install complete!" 389 print "GRP install complete!"

Legend:
Removed from v.1675  
changed lines
  Added in v.1700

  ViewVC Help
Powered by ViewVC 1.1.20