~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to setup/build.py

  • Committer: wagrant
  • Date: 2008-07-16 07:09:44 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:894
setup: Don't rebuild the jail by default. Pass -j to force a rebuild,
       rather than -J to force the opposite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    parser.add_option("-n", "--dry",
55
55
        action="store_true", dest="dry",
56
56
        help="Print out the actions but don't do anything.")
57
 
    parser.add_option("-J", "--norebuildjail",
58
 
        action="store_true", dest="norebuildjail",
 
57
    parser.add_option("-j", "--rebuildjail",
 
58
        action="store_true", dest="rebuildjail",
59
59
        help="Don't recreate jail/ - just update its IVLE code.")
60
60
    parser.add_option("-m", "--mirror",
61
61
        action="store", dest="apt_mirror",
63
63
    (options, args) = parser.parse_args(args)
64
64
 
65
65
    # Call the real function
66
 
    __build(options.dry, options.norebuildjail, options.apt_mirror)
 
66
    __build(options.dry, options.rebuildjail, options.apt_mirror)
67
67
 
68
 
def __build(dry=False,norebuildjail=False,apt_mirror=None):
 
68
def __build(dry=False,rebuildjail=False,apt_mirror=None):
69
69
    # Importing configuration is a little tricky
70
70
    sys.path.append(os.pardir)
71
71
    import install_list
99
99
    action_runprog('make', [], dry)
100
100
    os.chdir(curdir)
101
101
 
102
 
    if not norebuildjail:
 
102
    if rebuildjail:
103
103
        # Create the jail and its subdirectories
104
104
        # Note: Other subdirs will be made by copying files
105
105
        if apt_mirror != None: