[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#48749: dpkg/install-info inconsistent state

Package: dpkg

I run a package install with /usr/info/dir* being:

-rw-r--r--   1 root     root         9663 Sep 10 14:05 /usr/info/dir.old

And I wasn't able to install packages having info files with them.

When I looked at /usr/sbin/install-info the error message corresponded to:

if (!$nowrite && !link("$infodir/dir","$infodir/dir.lock")) {
    die "$name: failed to lock dir for editing! $!\n".
        ($! =~ m/exists/i ? "try deleting $infodir/dir.lock ?\n" : '');

I think at least a warning on the console about this condition and maybe a
suggestion to mv dir.old dir could be added.

I also noticed that if I stop install-info with Ctrl-C in the right (or wrong
depending on your perpective :) moment, it leaves its lock file dir.lock. 

-rw-r--r--   2 root     root            0 Oct 30 13:52 /usr/info/dir
-rw-r--r--   2 root     root            0 Oct 30 13:52 /usr/info/dir.lock
-rw-r--r--   1 root     root         9663 Sep 10 14:05 /usr/info/dir.old

Maybe a cleanup of this file could be moved into an interrupt handler together
with the proper restore of the dir file itself.


Get free email and a permanent address at http://www.amexmail.com/?A=1

Reply to: