~quickly-committers/quickly/trunk

« back to all changes in this revision

Viewing changes to data/templates/ubuntu-application/upgrade.py

  • Committer: Michael Terry
  • Date: 2012-08-21 15:01:59 UTC
  • mfrom: (679.1.15 arb)
  • Revision ID: michael.terry@canonical.com-20120821150159-z8bwqp3gypwz37i7
clean up how we package extras so that we don't use so many hacks and the ARB is happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
'quickly upgrade' to get rid of this message.""")
200
200
    sys.exit(0)
201
201
 
 
202
if project_version < '12.08.1':
 
203
    sedline = "sed -i '" + \
 
204
              "s|^import gettext$|import locale|g;" + \
 
205
              "s|^from gettext import |from locale import |g;" + \
 
206
              "s|^gettext.textdomain|locale.textdomain|g;" + \
 
207
              "'"
 
208
    # This find only hits the main module, and that is fine, other files will
 
209
    # be updated by normal overwriting mechanism below.
 
210
    os.system("find %s -name '*.py' -exec %s {} \;" % (python_name, sedline))
 
211
 
202
212
# Overwrite quickly-owned files as necessary
203
213
if project_version < template_version:
204
214
    print _(