Version control meta directories should be filtered out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Working on my first click package, I noticed that the .bzr control directory is getting included in the package. This doesn't seem ideal and will begin to increase the size of the package overtime.
$ click contents com.ubuntu.
drwxr-xr-x root/root 0 2013-09-10 22:46 ./
-rw-r--r-- root/root 2749 2013-09-09 21:11 ./StackListMode
-rw-r--r-- root/root 6078 2013-09-09 19:02 ./UserView.qml
-rw-r--r-- root/root 1626 2013-09-09 16:51 ./AnswerDelegat
-rw-r--r-- root/root 6470 2013-09-10 22:41 ./stackbrowser.png
drwxr-xr-x root/root 0 2013-09-09 17:50 ./lib/
-rw-r--r-- root/root 3935 2013-09-09 17:50 ./lib/dateutils.js
-rw-r--r-- root/root 4062 2013-09-08 12:36 ./lib/jsonpath.js
-rw-r--r-- root/root 7927 2013-09-10 22:44 ./stackbrowser.
-rw-r--r-- root/root 2640 2013-09-08 12:36 ./TagBrowser.qml
-rw-r--r-- root/root 179 2013-09-10 22:46 ./stackbrowser.
-rw-r--r-- root/root 1451 2013-09-09 17:55 ./README
-rw-r--r-- root/root 99 2013-09-10 22:46 ./stackbrowser.json
-rw-r--r-- root/root 4485 2013-09-09 12:06 ./ShareComponen
drwxr-xr-x root/root 0 2013-09-08 12:36 ./.bzr/
-rw-r--r-- root/root 35 2013-09-08 12:35 ./.bzr/
drwxr-xr-x root/root 0 2013-09-08 12:35 ./.bzr/branch-lock/
-rw-r--r-- root/root 147 2013-09-08 12:35 ./.bzr/README
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/branch/
-rw-r--r-- root/root 0 2013-09-08 12:36 ./.bzr/branch/tags
-rw-r--r-- root/root 39 2013-09-08 12:36 ./.bzr/
-rw-r--r-- root/root 140 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 55 2013-09-09 22:45 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/branch/lock/
drwxr-xr-x root/root 0 2013-09-09 22:42 ./.bzr/checkout/
-rw-r--r-- root/root 27 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 0 2013-09-08 12:36 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:42 ./.bzr/
-rw-r--r-- root/root 2569 2013-09-09 22:42 ./.bzr/
-rw-r--r-- root/root 17266 2013-09-08 17:58 ./.bzr/
-rw-r--r-- root/root 6398 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 40 2013-09-08 12:36 ./.bzr/
-rw-r--r-- root/root 140 2013-09-09 19:17 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/repository/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 54 2013-09-08 12:35 ./.bzr/
-rw-r--r-- root/root 257 2013-09-09 22:45 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 272 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 151 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 180 2013-09-09 18:52 ./.bzr/
-rw-r--r-- root/root 1194 2013-09-08 12:36 ./.bzr/
-rw-r--r-- root/root 181 2013-09-09 18:52 ./.bzr/
-rw-r--r-- root/root 822 2013-09-08 12:35 ./.bzr/
-rw-r--r-- root/root 182 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 2303 2013-09-08 12:35 ./.bzr/
-rw-r--r-- root/root 744 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 257 2013-09-09 18:52 ./.bzr/
-rw-r--r-- root/root 182 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 263 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 72 2013-09-08 12:35 ./.bzr/
-rw-r--r-- root/root 216 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 820 2013-09-08 12:35 ./.bzr/
-rw-r--r-- root/root 72 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 186 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 178 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 264 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 72 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 151 2013-09-09 18:52 ./.bzr/
-rw-r--r-- root/root 72 2013-09-09 18:52 ./.bzr/
-rw-r--r-- root/root 334 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 178 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 72 2013-09-09 22:45 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 185 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 72 2013-09-08 13:00 ./.bzr/
-rw-r--r-- root/root 178 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 180 2013-09-08 13:00 ./.bzr/
-rw-r--r-- root/root 10965 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 181 2013-09-08 13:00 ./.bzr/
-rw-r--r-- root/root 352 2013-09-09 12:07 ./.bzr/
-rw-r--r-- root/root 72 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 186 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 182 2013-09-09 12:07 ./.bzr/
-rw-r--r-- root/root 181 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 186 2013-09-09 12:07 ./.bzr/
-rw-r--r-- root/root 72 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 376 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 72 2013-09-09 12:07 ./.bzr/
-rw-r--r-- root/root 182 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 150 2013-09-08 13:00 ./.bzr/
-rw-r--r-- root/root 10035 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 181 2013-09-09 12:07 ./.bzr/
-rw-r--r-- root/root 4075 2013-09-08 13:00 ./.bzr/
-rw-r--r-- root/root 214 2013-09-08 13:00 ./.bzr/
-rw-r--r-- root/root 182 2013-09-08 12:39 ./.bzr/
-rw-r--r-- root/root 10658 2013-09-09 12:07 ./.bzr/
-rw-r--r-- root/root 459 2013-09-09 17:58 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/
drwxr-xr-x root/root 0 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 6183 2013-09-09 18:52 ./.bzr/
-rw-r--r-- root/root 3889 2013-09-09 22:45 ./.bzr/
-rw-r--r-- root/root 38666 2013-09-08 12:36 ./.bzr/
-rw-r--r-- root/root 4594 2013-09-09 22:22 ./.bzr/
-rw-r--r-- root/root 15271 2013-09-09 17:58 ./.bzr/
-rw-r--r-- root/root 920 2013-09-08 12:36 ./stackbrowser.
-rw-r--r-- root/root 10261 2013-09-09 11:58 ./stackbrowser.qml
drwxr-xr-x root/root 0 2013-09-08 18:04 ./graphics/
-rw-r--r-- root/root 1058 2013-09-08 12:36 ./graphics/
-rw-r--r-- root/root 2417 2013-09-08 12:36 ./graphics/tags.svg
-rw-r--r-- root/root 1319 2013-09-08 12:36 ./graphics/
-rw-r--r-- root/root 5120 2013-08-29 16:21 ./graphics/
-rw-r--r-- root/root 35147 2013-09-08 12:36 ./COPYING
-rw-r--r-- root/root 62 2013-09-08 12:36 ./.bzrignore
-rw-r--r-- root/root 1855 2013-09-09 16:51 ./QuestionDeleg
-rw-r--r-- root/root 3493 2013-09-08 12:36 ./UserBrowser.qml
-rw-r--r-- root/root 9721 2013-09-09 22:42 ./QuestionView.qml
-rw-r--r-- root/root 2803 2013-09-09 22:20 ./StackListView.qml
Related branches
- Colin Watson: Approve
- Ubuntu CI managed package branches: Pending requested
-
Diff: 485 lines (+269/-70)11 files modifiedREADME (+1/-0)
click/build.py (+10/-22)
click/framework.py (+138/-0)
click/install.py (+8/-28)
click/paths.py.in (+1/-0)
click/tests/helpers.py (+29/-0)
click/tests/test_build.py (+39/-5)
click/tests/test_install.py (+2/-4)
debian/changelog (+8/-0)
doc/file-format.rst (+1/-2)
doc/index.rst (+32/-9)
Changed in click (Ubuntu): | |
assignee: | nobody → Colin Watson (cjwatson) |
status: | Triaged → Fix Committed |
I generally recommend copying the necessary files into a staging directory before building the package, but you're right that this behaviour isn't ideal. This is related to bug 1219912, although not quite the same.