sstream-mirror does not clean empty directories

Bug #1444632 reported by Scott Moser
10
This bug affects 2 people
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://cloud-images.ubuntu.com/daily/
keyring="/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg"
sstream-mirror -v --keyring=$keyring --max=2 "$url" /archive/cloud-images-daily

$ cd /archive/cloud-images-daily
$ 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.

Scott Moser (smoser)
Changed in simplestreams:
status: New → Confirmed
Changed in simplestreams (Ubuntu):
status: New → Confirmed
Scott Moser (smoser)
Changed in simplestreams:
importance: Undecided → Medium
Changed in simplestreams (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

work around is to clean empty dirs with something like:
 find /archive/mirrors/ -type d -empty -delete

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.