Hi, On Sat, Nov 05, 2005, Justin Pryzby wrote: > removed `/root/.gstreamer-0.8/registry.xml' > rmdir: removing directory, /root/.gstreamer-0.8 > Unpacking replacement gstreamer0.8-misc ... > I can't fathom a legitimate reason to remove anything under /root/, > ever. I hope that I am I misinterprettign this message, but I just > read the preinst script, and I am not: > if [ -r "/root/.gstreamer-0.8/registry.xml" ]; then > current="`cat "/root/.gstreamer-0.8/registry.xml"`" > if [ "$orig" = "$current" ]; then > rm -f -v "/root/.gstreamer-0.8/registry.xml" || true > rmdir -v "/root/.gstreamer-0.8" || true > fi > fi
Previously, gst-register-0.8 was called without the "GST_REGISTRY" environment, and that caused some spurious files to be written to /root/.gstreamer-0.8. I noticed this bug by cheer luck, and all system ever having a gstreamer package installed (be it 0.6 or 0.8) had some spurious directories. Hence, I decided to fix the problem and try removing as much cruft as possible, so all packages where the fix appeared saw the addition of code to detect whether the file was automatically generated. As you can see, the script is very cautious about removing a file with the exact same contents as one generated by the package, and only removes the directory if empty. If you think something else should have been done, please suggest what. Bye, -- Loïc Minier <[EMAIL PROTECTED]> "What do we want? BRAINS! When do we want it? BRAINS!"

