Michael Vogt лет назад: 20
Родитель
Сommit
7d1d398480
2 измененных файлов с 5 добавлено и 1 удалено
  1. 2 0
      apt-pkg/acquire-item.cc
  2. 3 1
      debian/changelog

+ 2 - 0
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;
 }
 

+ 3 - 1
debian/changelog

@@ -2,6 +2,8 @@ apt (0.6.44.2) unstable; urgency=low
 
   * apt-pkg/depcache.cc:
     - added Debug::pkgDepCache::AutoInstall (thanks to infinity)
+  * apt-pkg/acquire-item.cc:
+    - fix missing chmod() in the new aquire code (Closes: #367425)
   * merged from 
     http://www.perrier.eu.org/debian/packages/d-i/level4/apt-main:
   	* sk.po: Completed to 512t
@@ -11,7 +13,7 @@ apt (0.6.44.2) unstable; urgency=low
 	* Update all PO and the POT. Gives 506t6f for formerly
 	  complete translations
 
- --
+ -- Michael Vogt <mvo@debian.org>  Wed, 14 Jun 2006 12:00:57 +0200
 
 apt (0.6.44.1-0.1) unstable; urgency=low