else:
ihandler.ask(options)
- sh = shell.Shell()
input.infobox("Copying files (this may take a while)...")
if not os.path.exists(dir):
- sh.call("git", "clone", "-q", "--shared", application.repository(old_options.srv_path), dir)
+ shell.call("git", "clone", "-q", "--shared", application.repository(old_options.srv_path), dir)
with util.ChangeDirectory(dir):
if not old_options.retry and version and version != "head-scripts": # for ease in testing
- sh.call("git", "reset", "-q", "--hard", appstr)
+ shell.call("git", "reset", "-q", "--hard", appstr)
input.infobox("Installing...")
application.install(distutils.version.LooseVersion(version), options)
if not old_options.no_commit:
git.commit_configure()
+ if not hasattr(options, "web_inferred"):
+ open(os.path.join(dir, ".scripts/url"), "w").write("http://%s%s" % (options.web_host, options.web_path)) # XXX: no support for https yet!
input.infobox("Congratulations, your new install is now accessible at:\n\nhttp://%s%s" % (options.web_host, options.web_path), width=80)
def configure_parser(parser, baton):