[Bug 360417] repository removal fails, if other project reuses it