Bug#244835: apt-get: hangs with long value in config file
Package: apt
Version: 0.5.24
Hi, when putting this into etc/apt/apt.conf.d/99test, apt-get hangs in
an infinite loop it seems:
# cat /etc/apt/apt.conf.d/99test
DPkg
{
Post-Invoke {"echo 678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901";}
}
# apt-get install --reinstall sed
...
This works:
# cat /etc/apt/apt.conf.d/99test
DPkg
{
Post-Invoke {"echo 67890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";}
}
# apt-get install --reinstall sed
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 29 not upgraded.
Need to get 0B/211kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 91707 files and directories currently installed.)
Preparing to replace sed 4.0.9-1 (using .../archives/sed_4.0.9-1_i386.deb) ...
Unpacking replacement sed ...
Setting up sed (4.0.9-1) ...
67890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
#
With another syntax, this hangs:
# cat /etc/apt/apt.conf.d/99test
DPkg::Post-Invoke {"echo 6789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456";};
# apt-get install --reinstall sed
...
and this works:
# cat /etc/apt/apt.conf.d/99test
DPkg::Post-Invoke {"echo 678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345";};
# apt-get install --reinstall sed
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 29 not upgraded.
Need to get 0B/211kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 91707 files and directories currently installed.)
Preparing to replace sed 4.0.9-1 (using .../archives/sed_4.0.9-1_i386.deb) ...
Unpacking replacement sed ...
Setting up sed (4.0.9-1) ...
678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345
#
Regards, Gerrit.
--
Open projects at http://smarden.org/pape/.
Reply to: