diff options
author | Julian Andres Klode <jak@debian.org> | 2010-07-27 13:57:42 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2010-07-27 13:57:42 +0200 |
commit | 15032eec2d508df3c63b532be22f488d240159a2 (patch) | |
tree | aa6d963cba7f0c05cc2ee478ce2959969cf50aa4 | |
parent | 4b12ea903c5166e6215764e6507f6271782df6ff (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.
-rw-r--r-- | apt-pkg/cdrom.cc | 2 | ||||
-rw-r--r-- | debian/changelog | 3 |
2 files changed, 4 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()); diff --git a/debian/changelog b/debian/changelog index 95f2338c0..ee48ec1d2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,9 @@ apt (0.7.26~exp11) experimental; urgency=low * cmdline/apt-get.cc: - Support large filesystems by using statvfs64() instead of statvfs() and statfs64() instead of statfs() (Closes: #590513). + * 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. -- Julian Andres Klode <jak@debian.org> Wed, 21 Jul 2010 17:09:11 +0200 |