Merge lp:~mterry/quickly/853692 into lp:quickly

Proposed by Michael Terry
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 635
Merged at revision: 635
Proposed branch: lp:~mterry/quickly/853692
Merge into: lp:quickly
Diff against target: 17 lines (+8/-0)
1 file modified
data/templates/ubuntu-application/upgrade.py (+8/-0)
To merge this branch: bzr merge lp:~mterry/quickly/853692
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+76749@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

looks good, thanks Michael!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/templates/ubuntu-application/upgrade.py'
2--- data/templates/ubuntu-application/upgrade.py 2011-07-29 19:02:32 +0000
3+++ data/templates/ubuntu-application/upgrade.py 2011-09-23 14:19:35 +0000
4@@ -201,5 +201,13 @@
5 except templatetools.CantUpdateFile, e:
6 print _("WARNING: can't update your project to support /opt. This doesn't matter if you don't plan to submit your project to the application review board. Cause is: %s" % e)
7
8+### 11.09 update
9+if project_version < '11.09':
10+ filename = './%s_lib/Builder.py' % python_name
11+ with open(filename) as fileobj:
12+ contents = fileobj.read()
13+ contents = contents.replace('from gi.repository import GObject', 'import gobject')
14+ contents = contents.replace('GObject.', 'gobject.')
15+ templatetools.set_file_contents(filename, contents)
16
17 sys.exit(0)

Subscribers

People subscribed via source and target branches