defunkt/rip

gc bug deleting packages it shouldn't

cldwalker opened this issue · 1 comments

I've noticed that rip-gc sometimes deletes packages it shouldn't. I traced it to an error where the installed packages of a ripenv were being appended to previous ripenv packages without a delimiting "\n". Without a "\n", the last package of the previous ripenv and the first package of the next ripenv are joined together, causing both packages to be deleted. I saw my deleted packages drop from 50 to 39 after this fix.

Branch: http://github.com/cldwalker/rip/tree/gc_bug

Didn't add tests since I didn't see any previous tests for this executable and wasn't sure how to test it.