I might be missing something.. but I can't find where remove-dups is defined.

On Thu, May 21, 2015 at 3:23 PM Artur Malabarba <bruce.connor.am@gmail.com> wrote:
2015-05-21 19:18 GMT+01:00 Kaushal <kaushal.modi@gmail.com>:
> Sorry, yes, I meant function*s*.
> Yes, evaluating that updates the custom.el fine.
> I will edebug (probably later) to see why that is not getting executed from
> within `package-install`.

Thanks, that would be helpful. But it's not inside package-install,
it's inside `package-menu-execute' (so this is the function you'll
have to edebug). Specifically, this form:

          (package--save-selected-packages
           (remove-dups (append (mapcar #'package-desc-name .install)
                                package-selected-packages)))