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

abort-install in postrm



I'm calling user/groupdel in a package.postrm to remove a user/group used by
the given package when it is purge/remove/abort-install 'd.

e.g.
...
purge|remove|abort-install)
  userdel foo
  groupdel bar
  ;;
...

It occurred to me that, I wasn't exactly sure what abort-install means, it
doesn't seem to be covered in my copy of the packaging-manual (3.2.1.0), in
section 6.

I guess it means.. what to do if installation of the package is
cancelled.. duh, but say you

apt-get --reinstall install <my_package>
(it already has been installed)

then i cancel at some point, and abort-install is called.. which deletes the
user/group needed by this software.. borking it..

is abort-install actually implemented?
am i understanding this correctly? possibly not, but i'd appreciate any input
here.

thanks
 - brian.
-- 
Brian Russo <brusso@phys.hawaii.edu> GPG ID: 54D81666
404E 87E8 DD0C 275B 742B  09AD 2243 839C 54D8 1666
http://www.phys.hawaii.edu/~brusso/gpg_brian.asc
magnus frater spectat te - encrypt whenever possible



Reply to: