/[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 1525 Revision 1526
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.55 2006/09/13 16:50:23 agaffney Exp $ 8$Id: GLIPortage.py,v 1.56 2006/09/13 18:26:30 agaffney Exp $
9""" 9"""
10 10
11import re 11import re
12import os 12import os
13import sys 13import sys
305 chroot_dir = sys.argv.pop(0) 305 chroot_dir = sys.argv.pop(0)
306 elif arg == "-g" or arg == "--grp": 306 elif arg == "-g" or arg == "--grp":
307 mode = "grp" 307 mode = "grp"
308 elif arg == "-s" or arg == "--stage3": 308 elif arg == "-s" or arg == "--stage3":
309 mode = "stage3" 309 mode = "stage3"
310 elif arg == "-k" or arg == "--kernel":
311 mode = "kernel"
310 elif arg == "-h" or arg == "--help": 312 elif arg == "-h" or arg == "--help":
311 usage(progname) 313 usage(progname)
312 sys.exit(0) 314 sys.exit(0)
313 elif arg[0] == "-": 315 elif arg[0] == "-":
314 usage(progname) 316 usage(progname)
382 for i, tmppkg in enumerate(pkglist): 384 for i, tmppkg in enumerate(pkglist):
383 print "Copying " + tmppkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")" 385 print "Copying " + tmppkg + " (" + str(i+1) + "/" + str(len(pkglist)) + ")"
384 gliportage.copy_pkg_to_chroot(tmppkg) 386 gliportage.copy_pkg_to_chroot(tmppkg)
385 gliportage.add_pkg_to_world(pkg) 387 gliportage.add_pkg_to_world(pkg)
386 print "GRP install complete!" 388 print "GRP install complete!"
389 elif mode == "kernel":
390 kernelpkg = gliportage.get_best_version_vdb("sys-kernel/livecd-kernel")
391 gliportage.copy_pkg_to_chroot(kernelpkg)
392 print "LiveCD kernel installed!"
387 else: 393 else:
388 print "You must specify an operating mode (-g or -s)!" 394 print "You must specify an operating mode (-g or -s)!"
389 usage(progname) 395 usage(progname)
390 sys.exit(1) 396 sys.exit(1)

Legend:
Removed from v.1525  
changed lines
  Added in v.1526

  ViewVC Help
Powered by ViewVC 1.1.20