diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-11-29 23:04:53 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-11-29 23:04:53 (GMT) |
commit | 97afc0cfcd48e4c8165087128e9ea5f4ecbf8eff (patch) | |
tree | 80b6f490ecc118695bfb9f4b0e09c943f62b2076 /webactivity.py | |
parent | 9697a446fa48d1bef6684f842fcd78a93f9c7bb7 (diff) |
Another fix
Diffstat (limited to 'webactivity.py')
-rwxr-xr-x | webactivity.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webactivity.py b/webactivity.py index 70f57be..e967a98 100755 --- a/webactivity.py +++ b/webactivity.py @@ -47,15 +47,16 @@ if os.path.exists(_version_file): _profile_version = int(f.read()) f.close() -if _profile_version < 1: +if _profile_version < PROFILE_VERSION: if not os.path.exists(_profile_path): os.mkdir(_profile_path) + shutil.copy('cert8.db', _profile_path) os.chmod(os.path.join(_profile_path, 'cert8.db'), 0600) -f = open(_version_file, 'w') -f.write(str(PROFILE_VERSION)) -f.close() + f = open(_version_file, 'w') + f.write(str(PROFILE_VERSION)) + f.close() import hulahop hulahop.startup(_profile_path) |