Skip to content

Commit

Permalink
Clean up all empty directories in stagingdir
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-turney committed Apr 2, 2024
1 parent bb2c299 commit de29eed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion calm/calm.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ def process_maintainer_uploads(args, state, all_packages, m, basedir, desc, scru

# clean up any empty directories
if not args.dryrun:
utils.rmemptysubdirs(os.path.join(basedir, m.name))
if scrub:
utils.rmemptysubdirs(os.path.join(basedir, m.name), depth=0)
else:
utils.rmemptysubdirs(os.path.join(basedir, m.name))

return success

Expand Down

0 comments on commit de29eed

Please sign in to comment.