[pkg-horde] Bug#493885: Bug#493885: Bug#493885: Bug#493885: horde3: update to 3.2.1+debian0-2 causes imp to fail

Ola Lundqvist opal at debian.org
Sun Aug 17 08:19:53 UTC 2008


Hi Gregory

On Sat, Aug 16, 2008 at 10:59:32PM +0200, Gregory Colpart wrote:
> Hello,
> 
> On Sun, Aug 10, 2008 at 12:52:07PM +0200, Gregory Colpart wrote:
> > On Sun, Aug 10, 2008 at 12:31:32PM +0200, Ola Lundqvist wrote:
> > > 
> > > Ok, good. I was not aware of that. Should I contact the release team or will
> > > you do that?
> > 
> > I think we could wait a little. Perhaps we will find a more
> > elegant solution for not disabling components during upgrade
> > to 3.2.1+debian0-2.
> 
> A solution to avoid disabling components during upgrade should be
> add preinst to verify if it's an upgrade from version lesser than
> 3.2.1+debian0-2. If it's the case, we compare md5sum of
> /etc/horde/horde3/registry.php and original one[*]: if
> registry.php file is not modified, we add a new empty line to be
> sure to have the hey-modified-conffile-question...
> It's *very* hacky then I request your opinion :-)

I think it is a good solution!

Something like this then:

case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" le "$LASTVERSION"; then
	if [ -e "$CONFFILE" ]; then
		if [ `md5sum "$CONFFILE" | sed -e \"s/ .*//\"` = "$oldmd5sum"; then
			echo >> "$CONFFILE"
                fi
        fi
fi
...

What do you think? We need to calculate the current md5sum for that version and include
it in the $oldmd5sum variable. Or do you think we should use the
  old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
line instead?

Best regards,

// Ola

> [*] Example here http://wiki.debian.org/DpkgConffileHandling
> 
> Regards,
> -- 
> Gregory Colpart <reg at evolix.fr>  GnuPG:1024D/C1027A0E
> Evolix - Informatique et Logiciels Libres http://www.evolix.fr/
> 
> 
> 
> _______________________________________________
> pkg-horde-hackers mailing list
> pkg-horde-hackers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-horde-hackers
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal at debian.org                     Annebergsslingan 37      \
|  ola at inguza.com                      654 65 KARLSTAD          |
|  http://inguza.com/                  +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------





More information about the pkg-horde-hackers mailing list