core: Fix packageset diff comparison