Bug#858556: In case the code is not anywhere...

2017-03-26 Thread Amos Jeffries
On 26/03/2017 1:34 p.m., Santiago Garcia Mantinan wrote: >> Maybe it was just that the original code had to be at the >> upgrade|install-upgrade >> block of the case? >> >> But why is the -d /etc/squid3 checked? > IIRC this is for transitions where _both_ squid and squid3 packages are already in

Bug#858556: In case the code is not anywhere...

2017-03-25 Thread Santiago Garcia Mantinan
> Maybe it was just that the original code had to be at the > upgrade|install-upgrade > block of the case? > > But why is the -d /etc/squid3 checked? I followed this two questions doing some tests on my system and it looks to me as we should be happy with this patch: --- /tmp/squid.preinst 201

Bug#858556: In case the code is not anywhere...

2017-03-24 Thread Santiago Garcia Mantinan
> Just in case you didn't have it and if I understood it well... I came up > with this in a quick attempt: Did I say this was just a quick attempt? Maybe it was just that the original code had to be at the upgrade|install-upgrade block of the case? when you are on an upgrade the parameters are

Bug#858556: In case the code is not anywhere...

2017-03-24 Thread Santiago Garcia Mantinan
> So... I guess you had some code that is missing here, isn't it? Just in case you didn't have it and if I understood it well... I came up with this in a quick attempt: V="$(dpkg --status squid 2>/dev/null|sed -n "s/^Version: \(.*\)/\1/p")" if [ -n "$V" ] && dpkg --compare-versions "$V" lt '2.8