[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-get install --reinstall --reset <pkg>



Hi,

I would like to add the action "reset" to apt. It will actually call dpkg with "--force-confask --force-confnew" (use newest version from git to try it). It would be nice to also reset debconf-choices, but debconf is currently no dependency of apt.

I need some help to implement it.

It seems to need in apt-get.cc:
{0,"reset","APT::Get::ReSet",0},

and in apt-get/deb/dpkgpm.cc:
     case Item::ReSet:
     Args[n++] = "--force-confask";
     Size += strlen(Args[n-1]);
     Args[n++] = "--force-confnew";
     Size += strlen(Args[n-1]);
     break;

Is there anything else to do to get it work?

regards,
Daniel Bock


Reply to: