~ubuntu-tweak-team/ubuntu-tweak/0.5.x

« back to all changes in this revision

Viewing changes to ubuntutweak/modules/sourcecenter.py

  • Committer: Tualatrix Chou
  • Date: 2011-09-17 22:04:02 UTC
  • Revision ID: git-v1:b7cd0c45635971ae610ef2b32871d1da0a8c6fe5
[sourcecenter] Do not forget to create SOURCE_ROOT if not exist

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
SOURCE_VERSION_URL = utdata.get_version_url('/sourcecenter_version/')
72
72
UPGRADE_DICT = {}
73
73
 
 
74
if not os.path.exists(SOURCE_ROOT):
 
75
    os.mkdir(SOURCE_ROOT)
 
76
 
74
77
def get_source_data_url():
75
78
    return utdata.get_download_url('/static/utdata/sourcecenter-%s.tar.gz' %
76
79
                                   VERSION_SETTING.get_value())