Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37720656
en ru br
ALT Linux repositórios
S:0.5.15lorg2-alt86
5.0: 0.5.15lorg2-alt26
4.1: 0.5.15lorg2-alt20.M41.1
4.0: 0.5.15lorg2-alt18.M40.1
+updates:0.5.15lorg2-alt18
3.0: 0.5.15cnc6-alt16

Group :: Sistema/Configurações/Pacotes
RPM: apt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: apt-0.5.15cnc6-alt-pkgcachegen.patch
Download


2004-05-15  Dmitry V. Levin <ldv@altlinux.org>
	* apt-pkg/pkgcachegen.cc(pkgMakeStatusCache):
	Remove old sources cache file before creating new one.
	Fix error handling.
--- apt-0.5.15cnc6/apt-pkg/pkgcachegen.cc.orig	2003-11-24 19:55:37 +0300
+++ apt-0.5.15cnc6/apt-pkg/pkgcachegen.cc	2004-05-15 19:10:23 +0400
@@ -805,10 +805,10 @@ bool pkgMakeStatusCache(pkgSourceList &L
    {
       unlink(CacheFile.c_str());
       CacheF = new FileFd(CacheFile,FileFd::WriteEmpty);
-      fchmod(CacheF->Fd(),0644);
-      Map = new DynamicMMap(*CacheF,MMap::Public,MapSize);
       if (_error->PendingError() == true)
 	 return false;
+      fchmod(CacheF->Fd(),0644);
+      Map = new DynamicMMap(*CacheF,MMap::Public,MapSize);
    }
    else
    {
@@ -902,10 +902,10 @@ bool pkgMakeStatusCache(pkgSourceList &L
       // even if using the sources cache (above).
       if (Writeable == true && SrcCacheFile.empty() == false)
       {
+	 unlink(SrcCacheFile.c_str());
 	 FileFd SCacheF(SrcCacheFile,FileFd::WriteEmpty);
 	 if (_error->PendingError() == true)
 	    return false;
-	 
 	 fchmod(SCacheF.Fd(),0644);
 	 
 	 // Write out the main data
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009