summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-07-27 13:57:42 +0200
committerJulian Andres Klode <jak@debian.org>2010-07-27 13:57:42 +0200
commit15032eec2d508df3c63b532be22f488d240159a2 (patch)
treeaa6d963cba7f0c05cc2ee478ce2959969cf50aa4 /apt-pkg
parent4b12ea903c5166e6215764e6507f6271782df6ff (diff)
* apt-pkg/cdrom.cc:
- Use link() instead of rename() for creating the CD database backup; otherwise there would be a short time without any database.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cdrom.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc
index 93deb49c4..e3e0027fc 100644
--- a/apt-pkg/cdrom.cc
+++ b/apt-pkg/cdrom.cc
@@ -383,7 +383,7 @@ bool pkgCdrom::WriteDatabase(Configuration &Cnf)
Out.close();
- rename(DFile.c_str(),string(DFile + '~').c_str());
+ link(DFile.c_str(),string(DFile + '~').c_str());
if (rename(NewFile.c_str(),DFile.c_str()) != 0)
return _error->Errno("rename","Failed to rename %s.new to %s",
DFile.c_str(),DFile.c_str());