summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-06-14 12:02:21 +0200
committerMichael Vogt <egon@bottom>2006-06-14 12:02:21 +0200
commit7d1d3984806f1a9b33638d11d84d7febbacfc91e (patch)
treeda847f59aa9bc519803131ae7cdc967af095623e /apt-pkg/acquire-item.cc
parent3fd130fb87f03b372bd3a892b3c843799c56c9c6 (diff)
parent1790e0cf6a14ba2a3ccd8a8a926ca12a44d46d97 (diff)
* merged from mainline
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index cc16215f5..28ed22d1b 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) {
@@ -953,6 +954,7 @@ void pkgAcqMetaIndex::RetrievalDone(string Message)
// Move it into position
Rename(DestFile,FinalFile);
}
+ chmod(FinalFile.c_str(),0644);
DestFile = FinalFile;
}