Globbing exclude fails with trailing slash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
duplicity:
Installed: 0.6.17-
Candidate: 0.6.17-
Version table:
*** 0.6.17-
500 http://
100 /var/lib/
0.
500 http://
python:
Installed: 2.7.2-7ubuntu2
Candidate: 2.7.2-7ubuntu2
Version table:
*** 2.7.2-7ubuntu2 0
500 http://
100 /var/lib/
I want to exclude, e.g.:
/home/me/
/home/me/
/home/me/
and all the files in them.
These two patterns work in an --exclude-
**/.mozilla/
**/.mozilla/
But this one fails to exclude files in /home/me/
**/.mozilla/
Naturally, it should fail to exclude the 2nd and 3rd example paths, but it should still match the first one--but it doesn't.
As another example, another path to exclude is:
/home/me/
This pattern works:
**/.mozilla/
But this one doesn't:
**/.mozilla/
I don't see why the trailing slash should cause the exclusion of the path to fail.
Related branches
- duplicity-team: Pending requested
-
Diff: 125 lines (+105/-0)2 files modifiedtesting/functional/test_selection.py (+71/-0)
testing/unit/test_selection.py (+34/-0)
- duplicity-team: Pending requested
-
Diff: 933 lines (+387/-97)5 files modified.bzrignore (+2/-0)
duplicity/selection.py (+20/-5)
po/duplicity.pot (+7/-7)
testing/functional/test_selection.py (+86/-19)
testing/unit/test_selection.py (+272/-66)
Changed in duplicity: | |
assignee: | nobody → Aaron Whitehouse (aaron-whitehouse) |
Changed in duplicity: | |
assignee: | Aaron Whitehouse (aaron-whitehouse) → nobody |
importance: | Undecided → Medium |
milestone: | none → 0.7.04 |
status: | Confirmed → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Added functional and unit tests to the linked branch, confirming this behaviour.