Th warnings come from the dpkg maintscript helper. You're supposed to put it in all the helper scripts and they show warnings for the prerm IIRC. I guess a separate upgrade task may be needed to delete the directories then too if empty.
> -----Original Message----- > From: Christoph Anton Mitterer [mailto:cales...@scientia.net] > Sent: Tuesday, February 27, 2018 2:44 PM > To: 890...@bugs.debian.org > Subject: Bug#890064: smbios-utils: properly clean up legacy config files > > Hi. > > Are you sure this has been fixed properly? > > On an upgrade to the new package version I saw: > Unpacking smbios-utils (2.4.1-1) over (2.3.1-2) ... > dpkg: warning: unable to delete old directory '/etc/yum/pluginconf.d': > Directory > not empty > dpkg: warning: unable to delete old directory '/etc/yum': Directory not empty > > and while all these are empty, the dirs are still not removed. > > Cheers, > Chris.