* apt-pkg/acquire-item.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 14 Jun 2006 09:59:47 +0000 (11:59 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 14 Jun 2006 09:59:47 +0000 (11:59 +0200)
  - added missing chmod() calls, thanks to Bastian Blank

apt-pkg/acquire-item.cc

index f22daaf..a51b6f1 100644 (file)
@@ -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;
 }