… | |
… | |
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. |
6 | Gentoo Linux Installer |
6 | Gentoo Linux Installer |
7 | |
7 | |
8 | $Id: GLIPortage.py,v 1.43 2006/02/20 16:48:15 agaffney Exp $ |
8 | $Id: GLIPortage.py,v 1.44 2006/02/20 17:11:41 agaffney Exp $ |
9 | """ |
9 | """ |
10 | |
10 | |
11 | import re |
11 | import re |
12 | import os |
12 | import os |
13 | import sys |
13 | import sys |
… | |
… | |
252 | |
252 | |
253 | if __name__ == "__main__": |
253 | if __name__ == "__main__": |
254 | chroot_dir = "/mnt/gentoo" |
254 | chroot_dir = "/mnt/gentoo" |
255 | mode = None |
255 | mode = None |
256 | grp_packages = [] |
256 | grp_packages = [] |
257 | while sys.argv.length: |
257 | while len(sys.argv): |
258 | arg = sys.argv.pop(0) |
258 | arg = sys.argv.pop(0) |
259 | if arg == "-c" or arg == "--chroot-dir": |
259 | if arg == "-c" or arg == "--chroot-dir": |
260 | chroot_dir = sys.argv.pop(0) |
260 | chroot_dir = sys.argv.pop(0) |
261 | elif arg == "-g" or arg == "--grp": |
261 | elif arg == "-g" or arg == "--grp": |
262 | mode = "grp" |
262 | mode = "grp" |