--- base-files-6.5ubuntu3/debian/postinst.in 2011-07-13 17:20:35.000000000 -0300 +++ helio-base/debian/postinst.in 2012-01-23 15:07:18.150498042 -0200 @@ -25,6 +25,13 @@ migrate_directory() { if [ ! -L $1 ]; then + if [ ! -z "`ls -A $1/`" ]; then + for x in $1/* $1/.[!.]* $1/..?*; do + if [ -e "$x" ]; then + mv -- "$x" $2/ + fi + done + fi rmdir $1 ln -s $2 $1 fi