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
> 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
> 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
> 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
4 matches
Mail list logo