Bug#3276: screen upgrade trashes running sessions...
>
> package: screen
> version: 3.7.1-4
>
> screen.postinst has:
>
> #this is to remove the "/tmp/screens has incorrect permissions" after
> #upgrading to this (3.7.1) version of screen from 3.6 or earlier.
>
> rm -rf /tmp/screens
OK, so I produced a script to correct this, and put it in postinst.
But now I have a real nice riddle: Why doesn't it work?
Answer: dpkg -i screen also runs the postrm from the old screen.
and guess what: it's got a "rm -rf /tmp/screens" too. This is
no surprise, it has to have (otherwise you can never remove
screen completely).
So now what? Make /tmp/screens a "configuration file"? This seems
hardly what "configuration files" were divised for.
Although I agree with you that the current behaviour is less than
perfect, I challenge you to come up with a better way.
(the testing then has to be done in postrm, but postrm *should*
get rid of /tmp/screens).
I could still release screen-3.7.1-5, for the manpage typing
error, but I'm not sure I will.
Anyway, thanks for the most interesting discussion,
--
joost witteveen
joost@rulcmc.leidenuniv.nl
joostje@debian.org
--
Use Debian Linux!
Reply to: