sstream-mirror does not clean empty directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
Confirmed
|
Medium
|
Unassigned | ||
simplestreams (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I've been mirroring cloud-images using sstream-mirror for quite a while doing something like:
url=http://
keyring=
sstream-mirror -v --keyring=$keyring --max=2 "$url" /archive/
$ cd /archive/
$ ls
server streams
$ ls server/vivid/
20150227.1 20150306.2 20150317.6 20150324 20150331.4 20150408.1
20150228 20150307.4 20150318 20150324.1 20150331.5 20150410.2
20150303.3 20150308 20150319.5 20150324.2 20150401 20150411
20150304 20150308.1 20150320.4 20150325 20150402 20150411.1
20150304.2 20150308.2 20150321 20150327 20150403 20150412
20150305 20150313.4 20150321.1 20150327.3 20150403.1 20150413.1
20150305.1 20150314.1 20150322 20150328 20150403.2 20150413.2
20150306.1 20150316 20150322.1 20150328.1 20150408 20150414
All but the final 2 dirs there are empty.
sstream-mirror should probably clean up empty directories when it removes a file.
Changed in simplestreams: | |
status: | New → Confirmed |
Changed in simplestreams (Ubuntu): | |
status: | New → Confirmed |
Changed in simplestreams: | |
importance: | Undecided → Medium |
Changed in simplestreams (Ubuntu): | |
importance: | Undecided → Medium |
work around is to clean empty dirs with something like:
find /archive/mirrors/ -type d -empty -delete