Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
gwibber
gwibber-sqlite-migrate-opensuse.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gwibber-sqlite-migrate-opensuse.diff of Package gwibber
diff -ruN gwibber-2.31.90+bzr820.orig/gwibber/microblog/util/const.py gwibber-2.31.90+bzr820/gwibber/microblog/util/const.py --- gwibber-2.31.90+bzr820.orig/gwibber/microblog/util/const.py 2010-08-21 09:25:42.646580000 +0100 +++ gwibber-2.31.90+bzr820/gwibber/microblog/util/const.py 2010-08-24 09:04:53.168580198 +0100 @@ -28,6 +28,13 @@ if not isdir(cache_dir): mkdir(cache_dir) if not isdir(config_dir): mkdir(config_dir) +import os.path +if not os.path.exists(SQLITE_DB_FILENAME): + OLD_DB_FILENAME = os.path.join(CACHE_DIR, "gwibber.sqlite") + if os.path.exists (OLD_DB_FILENAME): + import shutil + shutil.copyfile(OLD_DB_FILENAME, SQLITE_DB_FILENAME) + DEFAULT_SETTINGS = { "interval": 15, "view": "SingleStreamUi",
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor