This bug persists to a smaller extent with apt-get also. Now I have to maintain a list of packages I manually installed and have to fix the list of manually installed packages every time I run a PM.