7
quickly create ubuntu-application test-project
8
# Creating bzr repository and commiting
9
# Launching your newly created project!
10
# Congrats, your new project is setup! cd /tmp/test-project/ to start hacking.
11
# Creating project directory test-project
15
grep LaunchpadIntegration. bin/test-project
16
# LaunchpadIntegration.set_sourcepackagename('test-project')
17
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
19
grep helpmenu bin/test-project
20
# helpmenu = self.builder.get_object('helpMenu')
22
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
24
quickly configure lp-project gpoweroff
25
# Get Launchpad Settings
26
# Launchpad connection is ok
27
# Creating new apport crashdb configuration
28
# Creating new apport hooks
30
grep LaunchpadIntegration. bin/test-project
31
# LaunchpadIntegration.set_sourcepackagename('test-project')
32
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
34
grep helpmenu bin/test-project
35
# helpmenu = self.builder.get_object('helpMenu')
37
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
42
# data/ui/AboutTestProjectDialog.ui
51
# adding apport/source_test-project.py
53
# adding etc/apport/crashdb.conf.d
54
# adding etc/apport/crashdb.conf.d/test-project-crashdb.conf
56
quickly configure lp-project hudson-notifier
57
# Get Launchpad Settings
58
# Launchpad connection is ok
59
# Updating project name references in existing apport crashdb configuration
61
grep LaunchpadIntegration. bin/test-project
62
# LaunchpadIntegration.set_sourcepackagename('test-project')
63
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
65
grep helpmenu bin/test-project
66
# helpmenu = self.builder.get_object('helpMenu')
68
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
73
# apport/source_test-project.py
76
# etc/apport/crashdb.conf.d/
77
# etc/apport/crashdb.conf.d/test-project-crashdb.conf
80
# data/ui/AboutTestProjectDialog.ui
83
bzr commit -m "Test save"
84
# Committing to: /tmp/test-project/
89
# added apport/source_test-project.py
90
# modified data/ui/AboutTestProjectDialog.ui
92
# added etc/apport/crashdb.conf.d
93
# added etc/apport/crashdb.conf.d/test-project-crashdb.conf
94
# Committed revision 2.
96
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
98
# # This file is in the public domain
102
# 'impl' : 'launchpad',
103
# 'project' : 'hudson-notifier',
104
# 'bug_pattern_base' : None,
107
cat apport/source_test-project.py
108
# # Apport integration for test-project
110
# # -*- coding: utf-8 -*-
112
# # This file is in the public domain
116
# def add_info(report):
117
# """add report info"""
119
# if not apport.packaging.is_distro_package(report['Package'].split()[0]):
120
# report['ThirdParty'] = 'True'
121
# report['CrashDB'] = 'test_project'
123
quickly configure lp-project gpoweroff
124
# Get Launchpad Settings
125
# Launchpad connection is ok
126
# Updating project name references in existing apport crashdb configuration
128
grep LaunchpadIntegration. bin/test-project
129
# LaunchpadIntegration.set_sourcepackagename('test-project')
130
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
132
grep helpmenu bin/test-project
133
# helpmenu = self.builder.get_object('helpMenu')
135
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
140
# data/ui/AboutTestProjectDialog.ui
141
# etc/apport/crashdb.conf.d/test-project-crashdb.conf
144
bzr commit -m "Renaming hooks"
145
# Committing to: /tmp/test-project/
148
# modified data/ui/AboutTestProjectDialog.ui
149
# modified etc/apport/crashdb.conf.d/test-project-crashdb.conf
150
# Committed revision 3.
154
quickly configure lp-project hudson-notifier
155
# Get Launchpad Settings
156
# Launchpad connection is ok
157
# Updating project name references in existing apport crashdb configuration
158
# Creating new apport hooks
160
grep LaunchpadIntegration. bin/test-project
161
# LaunchpadIntegration.set_sourcepackagename('test-project')
162
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
164
grep helpmenu bin/test-project
165
# helpmenu = self.builder.get_object('helpMenu')
167
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
169
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
171
# # This file is in the public domain
175
# 'impl' : 'launchpad',
176
# 'project' : 'hudson-notifier',
177
# 'bug_pattern_base' : None,
180
cat apport/source_test-project.py
181
# # Apport integration for test-project
183
# # -*- coding: utf-8 -*-
185
# # This file is in the public domain
189
# def add_info(report):
190
# """add report info"""
192
# if not apport.packaging.is_distro_package(report['Package'].split()[0]):
193
# report['ThirdParty'] = 'True'
194
# report['CrashDB'] = 'test_project'
196
quickly configure lp-project gpoweroff
197
# Get Launchpad Settings
198
# Launchpad connection is ok
199
# Updating project name references in existing apport crashdb configuration
201
grep LaunchpadIntegration. bin/test-project
202
# LaunchpadIntegration.set_sourcepackagename('test-project')
203
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
205
grep helpmenu bin/test-project
206
# helpmenu = self.builder.get_object('helpMenu')
208
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
210
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
212
# # This file is in the public domain
216
# 'impl' : 'launchpad',
217
# 'project' : 'gpoweroff',
218
# 'bug_pattern_base' : None,
221
cat apport/source_test-project.py
222
# # Apport integration for test-project
224
# # -*- coding: utf-8 -*-
226
# # This file is in the public domain
230
# def add_info(report):
231
# """add report info"""
233
# if not apport.packaging.is_distro_package(report['Package'].split()[0]):
234
# report['ThirdParty'] = 'True'
235
# report['CrashDB'] = 'test_project'
239
cat apport/source_test-project.py
240
# # Apport integration for test-project
242
# # -*- coding: utf-8 -*-
244
# # This file is in the public domain
248
# def add_info(report):
249
# """add report info"""
251
# if not apport.packaging.is_distro_package(report['Package'].split()[0]):
252
# report['ThirdParty'] = 'True'
253
# report['CrashDB'] = 'test_project'
255
rm apport/source_test-project.py
257
quickly configure lp-project gpoweroff
258
# Get Launchpad Settings
259
# Launchpad connection is ok
260
# Updating project name references in existing apport crashdb configuration
261
# Creating new apport hooks
263
cat apport/source_test-project.py
264
# # Apport integration for test-project
266
# # -*- coding: utf-8 -*-
268
# # This file is in the public domain
272
# def add_info(report):
273
# """add report info"""
275
# if not apport.packaging.is_distro_package(report['Package'].split()[0]):
276
# report['ThirdParty'] = 'True'
277
# report['CrashDB'] = 'test_project'
279
quickly configure lp-project hudson-notifier
280
# Get Launchpad Settings
281
# Launchpad connection is ok
282
# Updating project name references in existing apport crashdb configuration
287
# data/ui/AboutTestProjectDialog.ui
288
# etc/apport/crashdb.conf.d/test-project-crashdb.conf
291
bzr commit -m "Prior to upgrade"
292
# Committing to: /tmp/test-project/
295
# modified data/ui/AboutTestProjectDialog.ui
296
# modified etc/apport/crashdb.conf.d/test-project-crashdb.conf
297
# Committed revision 4.
307
bzr commit -m "Re-running upgrade again"
308
# Committing to: /tmp/test-project/
313
# missing apport/source_test-project.py
314
# modified apport/source_test-project.py
316
# modified etc/apport
317
# missing etc/apport/crashdb.conf.d
318
# modified etc/apport/crashdb.conf.d
319
# missing etc/apport/crashdb.conf.d/test-project-crashdb.conf
320
# modified etc/apport/crashdb.conf.d/test-project-crashdb.conf
321
# Committed revision 5.
326
# Creating new apport crashdb configuration
327
# Creating new apport hooks
329
grep LaunchpadIntegration. bin/test-project
330
# LaunchpadIntegration.set_sourcepackagename('test-project')
331
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
333
grep helpmenu bin/test-project
334
# helpmenu = self.builder.get_object('helpMenu')
336
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
338
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
340
# # This file is in the public domain
344
# 'impl' : 'launchpad',
345
# 'project' : 'hudson-notifier',
346
# 'bug_pattern_base' : None,
349
cat apport/source_test-project.py
350
# # Apport integration for test-project
352
# # -*- coding: utf-8 -*-
354
# # This file is in the public domain
358
# def add_info(report):
359
# """add report info"""
361
# if not apport.packaging.is_distro_package(report['Package'].split()[0]):
362
# report['ThirdParty'] = 'True'
363
# report['CrashDB'] = 'test_project'
365
cp "$TEST_SCRIPT_DIR/test-project.no_lpi" ./bin/test-project
367
cp "$TEST_SCRIPT_DIR/TestProjectWindow.ui.renamed_help_menu" ./data/ui/TestProjectWindow.ui
373
grep LaunchpadIntegration. bin/test-project
375
grep helpmenu bin/test-project
378
# Adding launchpad integration to existing application
379
# Creating new apport crashdb configuration
380
# Creating new apport hooks
382
grep LaunchpadIntegration. bin/test-project
383
# LaunchpadIntegration.set_sourcepackagename('test-project')
384
# LaunchpadIntegration.add_items(helpmenu, 0, False, True)
388
cp "$TEST_SCRIPT_DIR/test-project.no_lpi" ./bin/test-project
390
cp "$TEST_SCRIPT_DIR/TestProjectWindow.ui.no_gtk-about" ./data/ui/TestProjectWindow.ui
396
grep LaunchpadIntegration. bin/test-project
398
grep helpmenu bin/test-project
400
grep gtk-about data/ui/TestProjectWindow.ui
402
bzr commit -m "Committing after removing all lpi integration"
403
# Committing to: /tmp/test-project/
404
# modified bin/test-project
405
# modified data/ui/TestProjectWindow.ui
406
# Committed revision 6.
409
# Creating new apport crashdb configuration
410
# Creating new apport hooks
412
grep LaunchpadIntegration. bin/test-project
414
grep helpmenu bin/test-project
421
cp "$TEST_SCRIPT_DIR/test-project.no_lpi" ./bin/test-project
423
rm ./data/ui/TestProjectWindow.ui
425
grep LaunchpadIntegration. bin/test-project
427
grep helpmenu bin/test-project