check the state of the FileFd before renaming as otherwise the rename
authorDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 9 Jul 2010 19:46:42 +0000 (21:46 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 9 Jul 2010 19:46:42 +0000 (21:46 +0200)
commit62d073d937742baf8621a11c3094e0320aa846cd
tree444ffbb1903d98a09556e22cf715c14266807526
parent7635093c1c015e385a9e72bdd8a089fd9d48ab57
check the state of the FileFd before renaming as otherwise the rename
will be tried twice e.g. in an "apt-get update" run and every other piece
of code closing the FileFd manual before the destructor will do it again.
apt-pkg/contrib/fileutl.cc