Quellcode durchsuchen

* fixed compile errors with g++ 7.3 (thanks to
Daniel Burrows, closes: #429378)
* fixes in the auto-mark code (thanks to Daniel
Burrows)
* fix FTFBFS by changing build-depends to
libcurl4-gnutls-dev (closes: #428363)
* cmdline/apt-get.cc:
- fix InstallTask code when a pkgRecord ends
with a single '\n' (thanks to Soren Hansen for reporting)
* merged from Christian Perrier:
* Update all PO and the POT. Gives 514t14f4u for formerly
complete translations
* fr.po: completed to 532t
* ku.po, uk.po, LINGUAS: reintegrate those translations
which disappeared from the BZR repositories

Michael Vogt vor 19 Jahren
Ursprung
Commit
4ac3c092c5
47 geänderte Dateien mit 23652 neuen und 15086 gelöschten Zeilen
  1. 3 2
      apt-pkg/contrib/configuration.cc
  2. 1 0
      apt-pkg/contrib/strutl.h
  3. 6 4
      apt-pkg/depcache.cc
  4. 1 0
      apt-pkg/depcache.h
  5. 2 2
      apt-pkg/pkgcachegen.cc
  6. 1 1
      apt-pkg/pkgcachegen.h
  7. 2 1
      cmdline/apt-get.cc
  8. 23 0
      debian/changelog
  9. 23 0
      po/ChangeLog
  10. 1 1
      po/LINGUAS
  11. 315 315
      po/apt-all.pot
  12. 522 431
      po/bg.po
  13. 516 429
      po/bs.po
  14. 523 430
      po/ca.po
  15. 521 430
      po/cs.po
  16. 519 433
      po/cy.po
  17. 520 433
      po/da.po
  18. 524 431
      po/de.po
  19. 523 434
      po/el.po
  20. 520 433
      po/en_GB.po
  21. 522 433
      po/es.po
  22. 520 433
      po/eu.po
  23. 520 433
      po/fi.po
  24. 521 435
      po/fr.po
  25. 541 454
      po/gl.po
  26. 514 429
      po/he.po
  27. 518 450
      po/hu.po
  28. 522 433
      po/it.po
  29. 520 433
      po/ja.po
  30. 520 433
      po/ko.po
  31. 2665 0
      po/ku.po
  32. 520 433
      po/nb.po
  33. 521 430
      po/nl.po
  34. 521 434
      po/nn.po
  35. 517 449
      po/pl.po
  36. 521 436
      po/pt.po
  37. 521 433
      po/pt_BR.po
  38. 523 430
      po/ro.po
  39. 520 433
      po/ru.po
  40. 520 433
      po/sk.po
  41. 521 434
      po/sl.po
  42. 520 433
      po/sv.po
  43. 521 434
      po/tl.po
  44. 2897 0
      po/uk.po
  45. 520 432
      po/vi.po
  46. 520 433
      po/zh_CN.po
  47. 520 433
      po/zh_TW.po

+ 3 - 2
apt-pkg/contrib/configuration.cc

@@ -422,6 +422,7 @@ bool Configuration::ExistsAny(const char *Name) const
    string key = Name;
 
    if (key.size() > 2 && key.end()[-2] == '/')
+   {
       if (key.find_first_of("fdbi",key.size()-1) < key.size())
       {
          key.resize(key.size() - 2);
@@ -432,7 +433,7 @@ bool Configuration::ExistsAny(const char *Name) const
       {
          _error->Warning(_("Unrecognized type abbreviation: '%c'"), key.end()[-3]);
       }
-
+   }
    return Exists(Name);
 }
 									/*}}}*/
@@ -506,7 +507,7 @@ bool ReadConfigFile(Configuration &Conf,const string &FName,bool AsSectional,
       CurLine++;
       // This should be made to work instead, but this is better than looping
       if (F.fail() && !F.eof())
-         return _error->Error(_("Line %d too long (max %d)"), CurLine, sizeof(Buffer));
+         return _error->Error(_("Line %d too long (max %lu)"), CurLine, sizeof(Buffer));
 
       _strtabexpand(Buffer,sizeof(Buffer));
       _strstrip(Buffer);

+ 1 - 0
apt-pkg/contrib/strutl.h

@@ -20,6 +20,7 @@
 
 #include <stdlib.h>
 #include <string>
+#include <cstring>
 #include <vector>
 #include <iostream>
 #include <time.h>

+ 6 - 4
apt-pkg/depcache.cc

@@ -216,7 +216,6 @@ bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly)
 	 pkgCache::PkgIterator pkg=Cache->FindPkg(pkgname);
 	 if(pkg.end() || pkg.VersionList().end()) 
 	    continue;
-	 bool oldAuto = section.FindI("Auto-Installed");
 	 bool newAuto = (PkgState[pkg->ID].Flags & Flag::Auto);
 	 if(_config->FindB("Debug::pkgAutoRemove",false))
 	    std::clog << "Update exisiting AutoInstall info: " 
@@ -1286,6 +1285,7 @@ void pkgDepCache::MarkPackage(const pkgCache::PkgIterator &pkg,
 			      bool follow_suggests)
 {
    pkgDepCache::StateCache &state = PkgState[pkg->ID];
+   VerIterator currver            = pkg.CurrentVer();
    VerIterator candver            = state.CandidateVerIter(*this);
    VerIterator instver            = state.InstVerIter(*this);
 
@@ -1306,9 +1306,11 @@ void pkgDepCache::MarkPackage(const pkgCache::PkgIterator &pkg,
    }
 #endif
 
-   // Ignore versions other than the InstVer, and ignore packages
-   // that are already going to be removed or just left uninstalled.
-   if(!(ver == instver && !instver.end()))
+   // For packages that are not going to be removed, ignore versions
+   // other than the InstVer.  For packages that are going to be
+   // removed, ignore versions other than the current version.
+   if(!(ver == instver && !instver.end()) &&
+      !(ver == currver && instver.end() && !ver.end()))
       return;
 
    // if we are marked already we are done

+ 1 - 0
apt-pkg/depcache.h

@@ -45,6 +45,7 @@
 #include <regex.h>
 
 #include <vector>
+#include <memory>
 
 class pkgDepCache : protected pkgCache::Namespace
 {

+ 2 - 2
apt-pkg/pkgcachegen.cc

@@ -150,7 +150,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List,
  		  Desc->ParentPkg = Pkg.Index();
 		  
  		  if (NewFileDesc(Desc,List) == false)
- 		     return _error->Error(_("Error occured while processing %s (NewFileDesc1)"),PackageName.c_str());
+ 		     return _error->Error(_("Error occurred while processing %s (NewFileDesc1)"),PackageName.c_str());
  		  break;
  	       }
 	    }
@@ -242,7 +242,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List,
       Desc->ParentPkg = Pkg.Index();
 
       if (NewFileDesc(Desc,List) == false)
-	 return _error->Error(_("Error occured while processing %s (NewFileDesc2)"),PackageName.c_str());
+	 return _error->Error(_("Error occurred while processing %s (NewFileDesc2)"),PackageName.c_str());
    }
 
    FoundFileDeps |= List.HasFileDeps();

+ 1 - 1
apt-pkg/pkgcachegen.h

@@ -51,7 +51,7 @@ class pkgCacheGenerator
    // Flag file dependencies
    bool FoundFileDeps;
    
-   bool NewPackage(pkgCache::PkgIterator &Pkg,const string &Pkg);
+   bool NewPackage(pkgCache::PkgIterator &Pkg,const string &PkgName);
    bool NewFileVer(pkgCache::VerIterator &Ver,ListParser &List);
    bool NewFileDesc(pkgCache::DescIterator &Desc,ListParser &List);
    unsigned long NewVersion(pkgCache::VerIterator &Ver,const string &VerStr,unsigned long Next);

+ 2 - 1
cmdline/apt-get.cc

@@ -1519,7 +1519,8 @@ bool TryInstallTask(pkgDepCache &Cache, pkgProblemResolver &Fix,
 
    // build regexp for the task
    char S[300];
-   snprintf(S, sizeof(S), "^Task:.*[^a-z]%s[^a-z].*\n", taskname);
+   // better: "^Task:.*[^a-z]lamp-server([^a-z]|\n)" ?
+   snprintf(S, sizeof(S), "^Task:.*[^a-z]%s[^a-z].*$", taskname);
    regcomp(&Pattern,S, REG_EXTENDED | REG_NOSUB | REG_NEWLINE);
    
    bool found = false;

+ 23 - 0
debian/changelog

@@ -1,3 +1,26 @@
+apt (0.7.3) unstable; urgency=low
+
+  * fixed compile errors with g++ 7.3 (thanks to 
+    Daniel Burrows, closes: #429378)
+  * fixes in the auto-mark code (thanks to Daniel
+    Burrows)
+  * fix FTFBFS by changing build-depends to
+    libcurl4-gnutls-dev (closes: #428363)
+  * cmdline/apt-get.cc:
+    - fix InstallTask code when a pkgRecord ends 
+      with a single '\n' (thanks to Soren Hansen for reporting)
+  * merged from Christian Perrier:
+	* vi.po: completed to 532t, again. Closes: #429899
+	* gl.po: completed to 532t. Closes: #429506
+	* vi.po: completed to 532t. Closes: #428672
+        * Update all PO and the POT. Gives 514t14f4u for formerly
+          complete translations
+        * fr.po: completed to 532t
+        * ku.po, uk.po, LINGUAS: reintegrate those translations
+          which disappeared from the BZR repositories
+
+ -- Michael Vogt <mvo@debian.org>  Sun, 01 Jul 2007 12:31:29 +0200
+
 apt (0.7.2-0.1) unstable; urgency=low
 
   * Non-maintainer upload.

+ 23 - 0
po/ChangeLog

@@ -1,3 +1,26 @@
+2007-06-19  Clytie Siddall  <clytie@riverland.net.au>
+
+	* vi.po: completed to 532t, again. Closes: #429899
+
+2007-06-19  Jacobo Tarrío  <jtarrio@debian.org>
+
+	* gl.po: completed to 532t. Closes: #429506
+
+2007-06-13  Clytie Siddall  <clytie@riverland.net.au>
+
+	* vi.po: completed to 532t. Closes: #428672
+
+2007-06-12  Christian Perrier  <bubulle@debian.org>
+
+	* Update all PO and the POT. Gives 514t14f4u for formerly
+	  complete translations
+	* fr.po: completed to 532t
+
+2007-06-12  Christian Perrier  <bubulle@debian.org>
+
+	* ku.po, uk.po, LINGUAS: reintegrate those translations
+	  which disappeared from the BZR repositories
+
 2007-06-01  Clytie Siddall  <clytie@riverland.net.au>
 
 	* vi.po: Updated to 515t. Closes: #426976

+ 1 - 1
po/LINGUAS

@@ -1 +1 @@
-bg bs ca cs cy da de el en_GB es eu fi fr gl he hu it ja ko nb nl nn pl pt pt_BR ro ru sk sl sv tl vi zh_CN zh_TW
+bg bs ca cs cy da de el en_GB es eu fi fr gl he hu it ja ko ku nb nl nn pl pt pt_BR ro ru sk sl sv tl uk vi zh_CN zh_TW

Datei-Diff unterdrückt, da er zu groß ist
+ 315 - 315
po/apt-all.pot


Datei-Diff unterdrückt, da er zu groß ist
+ 522 - 431
po/bg.po


Datei-Diff unterdrückt, da er zu groß ist
+ 516 - 429
po/bs.po


Datei-Diff unterdrückt, da er zu groß ist
+ 523 - 430
po/ca.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 430
po/cs.po


Datei-Diff unterdrückt, da er zu groß ist
+ 519 - 433
po/cy.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/da.po


Datei-Diff unterdrückt, da er zu groß ist
+ 524 - 431
po/de.po


Datei-Diff unterdrückt, da er zu groß ist
+ 523 - 434
po/el.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/en_GB.po


Datei-Diff unterdrückt, da er zu groß ist
+ 522 - 433
po/es.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/eu.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/fi.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 435
po/fr.po


Datei-Diff unterdrückt, da er zu groß ist
+ 541 - 454
po/gl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 514 - 429
po/he.po


Datei-Diff unterdrückt, da er zu groß ist
+ 518 - 450
po/hu.po


Datei-Diff unterdrückt, da er zu groß ist
+ 522 - 433
po/it.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/ja.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/ko.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2665 - 0
po/ku.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/nb.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 430
po/nl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 434
po/nn.po


Datei-Diff unterdrückt, da er zu groß ist
+ 517 - 449
po/pl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 436
po/pt.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 433
po/pt_BR.po


Datei-Diff unterdrückt, da er zu groß ist
+ 523 - 430
po/ro.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/ru.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/sk.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 434
po/sl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/sv.po


Datei-Diff unterdrückt, da er zu groß ist
+ 521 - 434
po/tl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2897 - 0
po/uk.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 432
po/vi.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/zh_CN.po


Datei-Diff unterdrückt, da er zu groß ist
+ 520 - 433
po/zh_TW.po