Exemplo n.º 1
0
                        if package in project.selected_packages:
                            project.selected_packages.remove(package)
                update_repo = False
            break
        maker.make_repos(project)
        
    #if op == "check-repo":
        #maker.check_repo_files(project)
    if op == "make" or op == "make-live":
        maker.make_image(project)
    # install-live
    # configure-live
    if op == "make" or op == "pack-live":
        maker.squash_image(project)
    if op == "make" or op == "make-iso":
        maker.make_iso(project)

    end = time.time()
    print "Total time is", end - start, "seconds."


def usage(app):
    print "Usage: %s [command] path/to/project.xml" % app
    print
    print "Commands:"
    print "  make-repo  : Make local repos"
    print "  check-repo : Check repo files"
    print "  make-live  : Install image"
    print "  pack-live  : Make squashfs"
    print "  make-iso   : Make ISO"
    print "  make       : Make all!"
Exemplo n.º 2
0
                        if package in project.selected_packages:
                            project.selected_packages.remove(package)
                update_repo = False
            break
        maker.make_repos(project)

    if op == "check-repo":
        maker.check_repo_files(project)
    if op == "make" or op == "make-live":
        maker.make_image(project)
    # install-live
    # configure-live
    if op == "make" or op == "pack-live":
        maker.squash_image(project)
    if op == "make" or op == "make-iso":
        maker.make_iso(project)

    end = time.time()
    print "Total time is", end - start, "seconds."


def usage(app):
    print "Usage: %s [command] path/to/project.xml" % app
    print
    print "Commands:"
    print "  make-repo  : Make local repos"
    print "  check-repo : Check repo files"
    print "  make-live  : Install image"
    print "  pack-live  : Make squashfs"
    print "  make-iso   : Make ISO"
    print "  make       : Make all!"