Zip/tarball update test

This commit is contained in:
Remy
2011-07-14 19:55:41 -07:00
parent 08fb78ff84
commit f87da4c1a5
3 changed files with 12 additions and 6 deletions

View File

@@ -95,9 +95,10 @@ def main():
if headphones.LAUNCH_BROWSER and not args.nolaunch:
headphones.launch_browser(headphones.HTTP_HOST, http_port, headphones.HTTP_ROOT)
# Start the background threads
headphones.start()
return

View File

@@ -36,6 +36,6 @@ There are still a few things that I'm working on:
If you run into any more issues, visit http://github.com/rembo10/headphones and report an issue.
This is free software so feel free to use it/modify it as you wish. The code is messy, but it works :-)
This is free software so feel free to use it/modify it as you wish.
If you have any ideas for the next release, also make sure to post that here!

View File

@@ -225,7 +225,8 @@ def initialize():
except Exception, e:
logger.error("Can't connect to the database: %s" % e)
# Get the currently installed version
# Get the currently installed version - returns None, 'win32' or the git hash
# Also sets INSTALL_TYPE variable to 'win', 'git' or 'source'
CURRENT_VERSION = versioncheck.getVersion()
__INITIALIZED__ = True
@@ -394,9 +395,13 @@ def shutdown(restart=False, update=False):
popen_list = [sys.executable, FULL_PATH]
popen_list += ARGS
if '--nolaunch' not in popen_list:
popen_list += ['--nolaunch']
#if '--nolaunch' not in popen_list:
# popen_list += ['--nolaunch']
logger.info('Restarting Headphones with ' + str(popen_list))
subprocess.Popen(popen_list, cwd=os.getcwd())
os._exit(0)
os._exit(0)
def refresh():
raise cherrypy.HTTPRedirect("home")