Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
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-3.0.0.orig/gwibber/microblog/util/const.py gwibber-3.0.0/gwibber/microblog/util/const.py --- gwibber-3.0.0.orig/gwibber/microblog/util/const.py 2011-04-05 22:08:20.000000000 +0100 +++ gwibber-3.0.0/gwibber/microblog/util/const.py 2011-04-07 16:26:06.290044263 +0100 @@ -25,6 +25,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) + GWIBBER_TEST_DUMP = None if environ.has_key("GWIBBER_TEST_DUMP"): GWIBBER_TEST_DUMP = environ["GWIBBER_TEST_DUMP"]
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