This file is indexed.

/usr/share/quickly/templates/ubuntu-application/test/overwrite.sh is in quickly-ubuntu-template 12.08.1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/sh

cd /tmp

rm -rf test-project

quickly create ubuntu-application test-project
# Creating bzr repository and committing
# Congrats, your new project is setup! cd /tmp/test-project/ to start hacking.
# Creating project directory test-project

cd test-project

sed -i 's/import os/import os #test-blarg/' setup.py

(echo "#test-blarg" >> setup.py)

(echo "#test-blarg" >> bin/test-project)

(echo "#test-blarg" >> test_project/TestProjectWindow.py)

(echo "#test-blarg" >> test_project_lib/Window.py)

rm test_project_lib/Builder.py

cp -a test_project_lib/helpers.py test_project_lib/helpers.py.test-bak

grep -R "#test-blarg" .
# ./test_project_lib/Window.py:#test-blarg
# ./setup.py:import os #test-blarg
# ./setup.py:#test-blarg
# ./bin/test-project:#test-blarg
# ./test_project/TestProjectWindow.py:#test-blarg

quickly upgrade 11.04
# Note: This is the first time you have run Quickly since it has been updated.
# Quickly will now upgrade its files (bin/*, test_project_lib/*, and setup.py).
# But first it will save your project.  View Quickly's changes by running:
# bzr diff

(test "$(ls --full-time test_project_lib/helpers.py)" = "$(ls --full-time test_project_lib/helpers.py.test-bak | sed 's/\.test-bak//')" && echo "Same")
# Same

ls test_project_lib/Builder.py
# test_project_lib/Builder.py

grep -R "#test-blarg" .
# ./setup.py:#test-blarg
# ./test_project/TestProjectWindow.py:#test-blarg

grep python_name setup.py test_project_lib/Builder.py

## A run to see if we futz with setup.py when we don't need to

cp -a setup.py setup.py.test-bak

rm test_project_lib/Builder.py

## We also make sure that we correctly keep the wrapper executable

rm bin/test-project

quickly upgrade 11.04
# Note: This is the first time you have run Quickly since it has been updated.
# Quickly will now upgrade its files (bin/*, test_project_lib/*, and setup.py).
# But first it will save your project.  View Quickly's changes by running:
# bzr diff

(test "$(ls --full-time setup.py)" = "$(ls --full-time setup.py.test-bak | sed 's/\.test-bak//')" && echo "Same")
# Same

ls test_project_lib/Builder.py
# test_project_lib/Builder.py

ls -F bin/test-project
# bin/test-project*

## A run to see if we change anything when version hasn't changed

rm test_project_lib/Builder.py

quickly upgrade

ls test_project_lib/Builder.py
# ls: cannot access test_project_lib/Builder.py: No such file or directory