diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-14 11:59:47 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-14 11:59:47 +0200 |
commit | 1790e0cf6a14ba2a3ccd8a8a926ca12a44d46d97 (patch) | |
tree | 8ea3245ed302b32342fcac6fa52ebd4ac8321f50 /apt-pkg | |
parent | 27299daff7e00d561dabb92945a516ed34b7be47 (diff) |
* apt-pkg/acquire-item.cc:
- added missing chmod() calls, thanks to Bastian Blank
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire-item.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index f22daaf71..a51b6f12d 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -540,6 +540,7 @@ void pkgAcqIndexDiffs::Done(string Message,unsigned long Size,string Md5Hash, << DestFile << " -> " << FinalFile << std::endl; } Rename(DestFile,FinalFile); + chmod(FinalFile.c_str(),0644); // see if there is more to download if(available_patches.size() > 0) { @@ -958,6 +959,7 @@ void pkgAcqMetaIndex::RetrievalDone(string Message) // Move it into position Rename(DestFile,FinalFile); } + chmod(FinalFile.c_str(),0644); DestFile = FinalFile; } |